How to use "nan"

1 Ansicht (letzte 30 Tage)
gyeonggeun kim
gyeonggeun kim am 26 Mär. 2021
Kommentiert: gyeonggeun kim am 26 Mär. 2021
I want to get rid of the color by using "nan" ,marked on the map.
The code is as follows.
  2 Kommentare
gyeonggeun kim
gyeonggeun kim am 26 Mär. 2021
I want to change the pixels to blue and make them look as smooth as any other turbulent region in the area.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Veronica Taurino
Veronica Taurino am 26 Mär. 2021
  1 Kommentar
gyeonggeun kim
gyeonggeun kim am 26 Mär. 2021
Thanks~

Melden Sie sich an, um zu kommentieren.


KSSV
KSSV am 26 Mär. 2021
Bearbeitet: KSSV am 26 Mär. 2021
LEt's say you want to change the values beyond a given value val (a number) into NaN. Use:
u(u>val) = NaN ;
isnan is afunction used to check whether a value is nan or not. You can check after replacing values with NaN using:
u(isnan(u))
  11 Kommentare
gyeonggeun kim
gyeonggeun kim am 26 Mär. 2021
I will try it!! thank you

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by