how to find the index of the highest negative element in a two dimensional matrix?
Show older comments
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 Comments
Dennis
on 4 Jul 2018
A=[1 2 3 4 -1231; -3 4 1 -8 1234];
[row column]=find(A==min(min(A)))
sandeep das
on 4 Jul 2018
Dennis
on 4 Jul 2018
[row column]=find(A==-3)
sandeep das
on 4 Jul 2018
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!