MATLAB Answers

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

조회 수: 3(최근 30일)
Ammaa AlSada
Ammaa AlSada 15 Dec 2018
댓글: madhan ravi 16 Dec 2018
matrix A(m,n)
we need to find min or max of only the 2nd row if we have a 2nd row

  댓글 수: 0

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 15 Dec 2018
편집: madhan ravi 15 Dec 2018
[value,index]=max(A(2,:))
[Value,Index]=min(A(2,:))

  댓글 수: 2

John D'Errico
John D'Errico 15 Dec 2018
+1. The point being to extract the second row. Then use either min or max as you wish.
madhan ravi
madhan ravi 16 Dec 2018
Thank you John D’Errico ;-)

댓글을 달려면 로그인하십시오.

추가 답변(0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by