function does not apt for coding ?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
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 commentaires
Mohan
le 26 Fév 2013
could you please give some more information on your code...
Dhines
le 26 Fév 2013
Walter Roberson
le 26 Fév 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
le 26 Fév 2013
Please post the complete error message.
Dhines
le 26 Fév 2013
Réponses (0)
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!