Take the array which is less than 3

1 回表示 (過去 30 日間)
fyza affandi
fyza affandi 2019 年 1 月 4 日
コメント済み: madhan ravi 2019 年 1 月 4 日
I have this marix
A= [ 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 3 3 3]
How can I take only value less than 3? The result should be :
A=[1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1]
I use this code , but its wrong
B=A(1:find(A==3)(1))

採用された回答

madhan ravi
madhan ravi 2019 年 1 月 4 日
  2 件のコメント
fyza affandi
fyza affandi 2019 年 1 月 4 日
Thank you very much
madhan ravi
madhan ravi 2019 年 1 月 4 日
Anytime :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by