() Indexing must appear last in an index expression.
function fit=ShiYinZhi(ROUTES,Cost,Code)CC=zeros(size(Cost));
for i=1:length(Code)
R=ROUTES(i){Code(i)};
J=length(R)-1;
for j=1:J
a=R(j);
b=R(j+1);
CC(a,b)=Cost(a,b);
end
end
fit=sum(sum(CC));
??? Error: File: C:\MATLAB6p5\work\MCRGSA.m Line: 116 Column: 7
() Indexing must appear last in an index expression.
请大家帮忙看看o(∩_∩)o...
[[it] 本帖最后由 xiaojikuaipao62 于 2008-5-27 14:26 编辑 [/it]]