⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ahphier.m

📁 阿瑟玩儿玩儿温热温热我认为而我热热特特让他人味儿我说的撒发生地方的是发生地方反思
💻 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 + -