How to convert to nan

6 ビュー (過去 30 日間)
주희 박
주희 박 2022 年 5 月 19 日
コメント済み: 주희 박 2022 年 5 月 20 日
FF= [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15];
And if n<10, convert n to nan. This is what i want to know
Actually I have 10614X696 double file, I can't convert it respectively.
And I want to convert it to nan in sepcific range.
Thanks.

採用された回答

David Hill
David Hill 2022 年 5 月 19 日
FF= [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15];
FF(FF>5&FF<14)=nan;
  1 件のコメント
주희 박
주희 박 2022 年 5 月 20 日
Thank you so much!!

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

その他の回答 (1 件)

Mathieu NOE
Mathieu NOE 2022 年 5 月 19 日
hello
try this
FF= [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15];
[i,j] = find(FF > 0 & FF < 10);
FF(i,j) = NaN;
  1 件のコメント
주희 박
주희 박 2022 年 5 月 20 日
Thank you :)

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

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by