how to show index number of minimum value from matrices?
1 次查看(过去 30 天)
显示 更早的评论
i am doing a recognition system where i need to locate the minimum value for each row from the 40 by 40 matrices..i now can produce the list of minimum value from each row using this code.. A=min(euc,[], 2); but i still want it to show the minimum number produced is from which column (index number).. how do i write it?
best regards, farah
0 个评论
采纳的回答
更多回答(1 个)
Adam
2017-4-24
[A, idx] = min(euc,[], 2);
provides the index, as shown in the documentation
doc min
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NaNs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!