How to assign only first member in matrix

조회 수: 1 (최근 30일)
Rohan  Mehta
Rohan Mehta 2019년 6월 24일
댓글: Rohan Mehta 2019년 6월 24일
I am using q(t) = find(A == max1(t));
But problem here is in max1(4) has value of 134 and in A 134 is repeated two times I want only first location of 134 how to do that ?

채택된 답변

madhan ravi
madhan ravi 2019년 6월 24일
편집: madhan ravi 2019년 6월 24일
q(t) = find(A == max1(t),1,'first')
  댓글 수: 3
madhan ravi
madhan ravi 2019년 6월 24일
see edited answer
Rohan  Mehta
Rohan Mehta 2019년 6월 24일
done,
Thank you so much

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by