function does not apt for coding ?
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
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 个评论
Mohan
2013-2-26
could you please give some more information on your code...
Dhines
2013-2-26
Walter Roberson
2013-2-26
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
2013-2-26
Please post the complete error message.
Dhines
2013-2-26
回答(0 个)
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!