the dimension of matrix minimum
1 次查看(过去 30 天)
显示 更早的评论
Hi, I know that if we have a matrix "A" we can get the minimum value of this matrix by min(A), but is it possible to get the dimension of this minimum value? for example if we have a 30*90 matrix "A" and assume that the minimum value is A(25,81), how can we get these numbers ==>(25,81)?
thanks,
0 个评论
采纳的回答
Andrei Bobrov
2013-8-5
编辑:Andrei Bobrov
2013-8-5
[ii,ii] = min(A(:));
[i1,j1] = ind2sub(size(A),ii);
1 个评论
Jan
2013-8-5
@Farid sjdclkjas: Whenever you have questions concerning a command, reading the documentation is a good idea:
doc min
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!