How to find the corresponding value?
조회 수: 1 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
madhan ravi
2020년 6월 12일
편집: madhan ravi
2020년 6월 12일
[Max, Where] = max(a);
b(Where)
https://www.mathworks.com/learn/tutorials/matlab-onramp.html - worth doing it
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!