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

min or max

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

Best Answer

[value,index]=max(A(2,:))
[Value,Index]=min(A(2,:))
Related Question