Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Not equal to NaN or element is a number!
Replies: 2   Last Post: Jan 22, 2014 11:20 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
dpb

Posts: 8,231
Registered: 6/7/07
Re: Not equal to NaN or element is a number!
Posted: Jan 22, 2014 9:14 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/22/2014 2:42 AM, Mayar wrote:
...

> how can i easily find an element in matrix which is not equal to NaN?
...
> ... for element which is NaN, i can use , isnan(x).
> but for not equal to NaN . i didnt find any thing.



~isnan() is the logical negation of isnan()

or, of course,

doc isfinite

will find those that aren't either +/-Inf _or_ NaN if that's what you're
looking for

--




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.