Effacer les filtres
Effacer les filtres

Analytical Hierarchy Process Matrix Formulation Help

1 vue (au cours des 30 derniers jours)
Declan Simons
Declan Simons le 30 Mar 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.

Réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by