Find the min(or max) of the 2nd row of an unknown matrix?
7 views (last 30 days)
Show older comments
matrix A(m,n)
we need to find min or max of only the 2nd row if we have a 2nd row
0 Comments
Accepted Answer
madhan ravi
on 15 Dec 2018
Edited: madhan ravi
on 15 Dec 2018
[value,index]=max(A(2,:))
[Value,Index]=min(A(2,:))
2 Comments
John D'Errico
on 15 Dec 2018
+1. The point being to extract the second row. Then use either min or max as you wish.
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices 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!