フィルターのクリア

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