フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Returning values in a matrix between 1 and 2

1 回表示 (過去 30 日間)
Kimberly
Kimberly 2014 年 4 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
how would I write a script that returns the values in a matrix between 1 and 2. both using for loops and not.
  4 件のコメント
Star Strider
Star Strider 2014 年 4 月 20 日
See the gt function and its friends (all linked-to at the end of the page).
Kimberly
Kimberly 2014 年 4 月 21 日
I just ended up using the find function for the matrix and it worked

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 4 月 21 日
See also logical indexing
values = YourMatrix(YourMatrix > 1 & YourMatrix < 2);

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by