index must be a positive integer or logical
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
Attempted to access Connected(0,936); index must be a positive integer or logical.
Error in ==> coc at 36 cc=Connected(i-1,j);
anyone knows how to solve this ??
0 个评论
回答(1 个)
Azzi Abdelmalek
2013-4-5
0 个投票
You can not use 0 as index, it must be 1,2,3,... or logical(1) and logical(0)
3 个评论
Shahd Ewawi
2013-4-5
编辑:Azzi Abdelmalek
2013-4-5
Azzi Abdelmalek
2013-4-5
编辑:Azzi Abdelmalek
2013-4-5
cc=Connected(i-1,j)
If i start from 1 then i-1 start from 0
Shahd Ewawi
2013-4-5
编辑:Shahd Ewawi
2013-4-5
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!