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

1 次查看(过去 30 天)
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