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 ranking for iDMUo=1:J [Rank,RunTime]=BestRankFun(mInput,mOutput,iDMUo); vBestRank(iDMUo,1)=Rank; vBestRankRunTime(iDMUo,1)=RunTime; end vBestRank vBestRankRunTime