フィルターのクリア

How to extract a specific range of values from a multi dimensional matrix?

6 ビュー (過去 30 日間)
Novice Geek
Novice Geek 2015 年 1 月 21 日
コメント済み: Martin Olowe 2021 年 6 月 17 日
Hi,
I have a double matrix with the following dimensions: 37 X 745 X 32. This matrix contains many zeros and also quite a lot of values between the range 100-999.9. I would like to extract data values which are in a specific range (ex: 815.6 - 816.4) from this matrix, in order to generate a kernel estimation plot. Can anyone please help me here, as I am unable to figure out how to do it?

採用された回答

Star Strider
Star Strider 2015 年 1 月 21 日
The values lose their matrix identity and return as a column vector, but ‘M1’ has them all.
This works:
M = 1000*rand(37, 745, 32); % Create Data
M1 = M((M >= 815.6) & (M <= 816.4)); % Vector Of Desired Values
  4 件のコメント
abdulla alexander
abdulla alexander 2020 年 9 月 10 日
never mind. I got it lol
Martin Olowe
Martin Olowe 2021 年 6 月 17 日
how did you solve your problem?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by