[finalLinkCost1DMatrix, path, corelation] = getSetOfPlanes(topology,realCapacityTopology,costTopology,AR,GW,X(x)); path1=path; finalLinkCost1DMatrix1=finalLinkCost1DMatrix; for k=1:size(finalLinkCost1DMatrix,3) for f=1:6 if path(f,8,k)~=0 path1(:,:,k)=[]; finalLinkCost1DMatrix(:,:,k)=[]; break; else continue; end end end
I get
??? Matrix index is out of range for deletion.
Error in ==> topo at 76 path1(:,:,k)=[]; Can anyone help me with this. with thanks
Best Answer