Find the min(or max) of the 2nd row of an unknown matrix?

7 views (last 30 days)
matrix A(m,n)
we need to find min or max of only the 2nd row if we have a 2nd row

Accepted Answer

madhan ravi
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
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!