Function for opposite of isnan?

12 Ansichten (letzte 30 Tage)
Ashley
Ashley am 12 Sep. 2014
Beantwortet: Joseph Cheng am 12 Sep. 2014
What I would like is a statement that creates a logical column that is opposite of that which isnan() creates. In other words, instead of nans being indicated by 1, I'd like it to be indicated as a zero... Any ideas for a code or function?

Akzeptierte Antwort

Joseph Cheng
Joseph Cheng am 12 Sep. 2014
you would go ~isnan() to reverse the 1's to zeros and zeros to be 1.

Weitere Antworten (0)

Kategorien

Mehr zu Numeric Types finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by