フィルターのクリア

How do I find all the numbers between [0 1.5] in a 10x2 matrix?

1 回表示 (過去 30 日間)
Nicolas Sajche
Nicolas Sajche 2021 年 9 月 2 日
回答済み: Chunru 2021 年 9 月 3 日
Lets suppose I have a Matrix 10x2 and I want to find all the numbers of that matrix that are in between [0 1.5] how do I do it?

回答 (1 件)

Chunru
Chunru 2021 年 9 月 3 日
a = randn(10, 2)*2
a = 10×2
2.7247 -1.7058 -0.1877 1.0260 -0.0455 0.9011 0.3603 1.6587 3.4247 0.7312 1.4146 0.7273 2.7681 -0.5504 -1.3409 1.5706 -1.5193 -0.0002 1.5610 -3.4625
a1 = a(a>=0 & a<=1.5)
a1 = 6×1
0.3603 1.4146 1.0260 0.9011 0.7312 0.7273

カテゴリ

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