标题:() Indexing must appear last in an index expression.
取消只看楼主
xiaojikuaipao62
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2008-5-27
 问题点数:0 回复次数:1 
() 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]]
搜索更多相关主题的帖子: Indexing expression appear last index 
2008-05-27 14:08
xiaojikuaipao62
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2008-5-27
得分:0 
帮帮忙嘛!
2008-05-27 14:27



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-216145-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022008 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved