Hello,
a = [ 1 2 3 6 8 4 ]
b = [10 11 12 13 14 15]
maxa= max(a)
bb = 14;
in this case, I want to find bb which correspond to the maximum value of a.
(because 'max(a)' located in the fifth, so I want to indicate the fifth value of the 'b')
how to do it?

 채택된 답변

madhan ravi
madhan ravi 2020년 6월 12일
편집: madhan ravi 2020년 6월 12일

0 개 추천

[Max, Where] = max(a);
b(Where)

댓글 수: 1

hj lee
hj lee 2020년 6월 12일
Thank you so much!
[ , ] is expressing the data sequence?

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

태그

질문:

2020년 6월 12일

댓글:

2020년 6월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by