フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

index must be a positive integer or logical

2 ビュー (過去 30 日間)
Shahd Ewawi
Shahd Ewawi 2013 年 4 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 ??

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 4 月 5 日
You can not use 0 as index, it must be 1,2,3,... or logical(1) and logical(0)
  3 件のコメント
Azzi Abdelmalek
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
Shahd Ewawi 2013 年 4 月 5 日
編集済み: Shahd Ewawi 2013 年 4 月 5 日
thanks for your help

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by