function does not apt for coding ?
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
function indices = argmin(C)
[m i] = min(C(:));
if isvector(C)
indices = i;
else
indices = ind2subv(sizePMTK(C), i);
end
...
Error in ==> trained at 1324
Function indices = argmin(C)
5 Commenti
Mohan
il 26 Feb 2013
could you please give some more information on your code...
Dhines
il 26 Feb 2013
Walter Roberson
il 26 Feb 2013
I think you will find that ind2subv() does not exist.
You will also find that min(C(:)) never returns multiple indices into "i".
If you already know that your input C is a vector (or matrix), then why not just use min() directly?
Jan
il 26 Feb 2013
Please post the complete error message.
Dhines
il 26 Feb 2013
Risposte (0)
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!