ahphier.m
来自「阿瑟玩儿玩儿温热温热我认为而我热热特特让他人味儿我说的撒发生地方的是发生地方反思」· M 代码 · 共 21 行
M
21 行
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 + =
减小字号Ctrl + -
显示快捷键?