Analytical Hierarchy Process Matrix Formulation Help

1 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by