The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

Posts: 9,850
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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.