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 Center および File ExchangeNaNs についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by