필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I script this ?

조회 수: 1 (최근 30일)
Aniruddha Das
Aniruddha Das 2020년 4월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
Lets say, there are two row vectors A and B.
For each element of A, there is a value assigned in B.
for example,
A = [ 10 19 5 9 14 18 20 7]
B= [ 20.2 26 23.6 27.8 25 31 34.9 40]
I want to select only those elements of A which are > 10 and also want to get the correspnding numbers from B.
Help me with this.
Thanks

답변 (1개)

Adam Danz
Adam Danz 2020년 4월 21일
Hint:
A>10
B(A>10)
  댓글 수: 2
Aniruddha Das
Aniruddha Das 2020년 4월 21일
Got it, thanks Adam.
Self learning MATLAB. But this was very trivial.
Adam Danz
Adam Danz 2020년 4월 21일
편집: Adam Danz 2020년 4월 23일
Glad I could help!

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by