フィルターのクリア

Analytical Hierarchy Process Matrix Formulation Help

1 回表示 (過去 30 日間)
Declan Simons
Declan Simons 2015 年 3 月 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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by