clc;clear mInput=xlsread('pigdata.xlsx','input'); mOutput=xlsread('pigdata.xlsx','output'); [J,nInput]=size(mInput); [JOutput,nOutput]=size(mOutput); if J~=JOutput error('The input and output matrix must have the same num of rows'); end %best buffered ranking for iDMUo=1:J [Rank,RunTime,UpperRankOfBuffRank]=BestBuffRankFun(mInput,mOutput,iDMUo); vBestBuffRank(iDMUo,1)=Rank; vBestBuffRankRunTime(iDMUo,1)=RunTime; vUpperRankOfBestBuffRank(iDMUo,1)=UpperRankOfBuffRank; end vBestBuffRank vUpperRankOfBestBuffRank vBestBuffRankRunTime