?? ahphier.m
字號:
function out=ahphier(all,varargin)
%AHPHIER One-step hierarchical assembly of AHP weighting vector
% AHPHIER(ALL,A_1,A_2,...,A_N) combines the normalized vectors
% A_1,A_2,...,A_N of lower level weights using the vector ALL.
% ALL is a vector of length N giving the relative weights of
% A_1 to A_N.
n=length(all);
if nargin ~= n+1
disp 'You seem to have the wrong number of vectors.';
disp 'Exiting.';
return;
end
out=[];
for i=1:n
temp=all(i).*varargin{i};
out=[out,temp];
end
out=out/sum(out);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -