Borrar filtros
Borrar filtros

Analytical Hierarchy Process Matrix Formulation Help

1 visualización (últimos 30 días)
Declan Simons
Declan Simons el 30 de Mzo. de 2015
I have a goal. (Self explanatory)
I have 4 main criteria each with 4 sub criteria. I wondered how I could set the matrices up so that I don't have to create 21 individual matrices each with 4 different values. I tried using for loops such that:
clear all clc
GM1 = 2 GM2 = 3 GM3 = 6 GM4 = 11
%%Each of these is set for means of testing final output will come from GUI
for i='a':'d' for j= 'm':'p' for q = 's':'v' i =
[(a)/(m),(a)/(n),(a)/(o),(a)/(p);
(b)/(m),(b)/(n),(b)/(o),(b)/(p);
(c)/(m),(c)/(n),(c)/(o),(c)/(p);
(d)/(m),(d)/(n),(d)/(o),(d)/(p)]
end
I know this is wrong but what I want is 4 matrices showing the same calculations with different variables used each time so I don't have to type it out 21 times for the different matrices.

Respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by