Display the the minimum value
显示 更早的评论
A B
0.025 520
0.027 531
0.029 560
0.031 508
0.033 600
0.035 572
0.037 523
0.039 512
0.041 582
0.043 525
Hi, I am writing a program to determine the value of element A which is corresponding to the minimum value of element B. The answer must be as:
M =
0.031
508
However, the written code
M = min(E,[],2)
gives this answer
M =
0.025
508
Could you please let me know the right code which is able to display the value of element A which is corresponding to smallest value of element B.
Thank you very much
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Images 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!