Filter löschen
Filter löschen

Analytical Hierarchy Process Matrix Formulation Help

1 Ansicht (letzte 30 Tage)
Declan Simons
Declan Simons am 30 Mär. 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.

Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by