フィルターのクリア

How i can fix this issue in MATLAB?

1 回表示 (過去 30 日間)
Nisar Ahmed
Nisar Ahmed 2021 年 12 月 8 日
コメント済み: Image Analyst 2021 年 12 月 9 日
Hi,
If I use this command (Phie(isnan(Phie)) = 0.22). It assign every NaN equal to 0.22. Suppose I want assign a range of values say 0.15 - 0.25 instead of single value (0.22).
How can I edit or make a command like Phie(isnan(Phie)) = 0.15 - 0.25. Here Phie is plotted along x axis while say depth is plotted along Y axis.

採用された回答

KSSV
KSSV 2021 年 12 月 8 日
編集済み: KSSV 2021 年 12 月 8 日
idx = isnan(Phie) ;
val = linspace(0.15,0.25,nnz(idx)) ;
Phie(idx) = val ;
  6 件のコメント
Nisar Ahmed
Nisar Ahmed 2021 年 12 月 8 日
alright, thank you for help
Image Analyst
Image Analyst 2021 年 12 月 9 日
Attach sample input and desired output if you want more help.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by