Why I get this error? how can I solve it?

조회 수: 1 (최근 30일)
hanif hamden
hanif hamden 2018년 9월 26일
댓글: hanif hamden 2018년 10월 3일
Error in returnindex (line 2) n=length(X);
Output argument "ind" (and maybe others) not assigned during call to "returnindex".
Error in BinData (line 28) Y(i,1)=returnindex(X(i),Value)-1;

채택된 답변

Fangjun Jiang
Fangjun Jiang 2018년 9월 26일
Need your returnindex.m to see the problem. Most likely, it has a output argument called "ind" but was not assigned.
  댓글 수: 4
Fangjun Jiang
Fangjun Jiang 2018년 9월 27일
in returnindex.m, based on the condition, "ind" could never be evaluated.
hanif hamden
hanif hamden 2018년 10월 3일
Yes. it is due to arrangement of the data. I found the solution. Thanks btw

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by