필터 지우기
필터 지우기

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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by