필터 지우기
필터 지우기

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