how to find the index of the highest negative element in a two dimensional matrix?

24 次查看(过去 30 天)
suppose I have a two dimensional matrix having positive and negative elements. I want to find the index of the element which is the most negative element in the matrix. the index should give information about the row and column in which the element is present.
  4 个评论

请先登录,再进行评论。

采纳的回答

Paolo
Paolo 2018-7-4
[row,col]=find(A==min(A(A<0)))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by