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

1 visualizzazione (ultimi 30 giorni)
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;

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by