Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] MatLab help: NaN - What am I doing wrong?

Status
Not open for further replies.
Re: MatLab help: NaN..............

Hi,

Logical operators (like "==") involving NaN return always FALSE, except "~=".
This is because as a NaN is not a number it can not be equal to anything.
Use "isnan" function instead:

if isnan(x)
x=0;
end

Regards

Z
 

Re: MatLab help: NaN..............

Thank you very much.
I need to do a lot of work to make the change, but at least now I understand.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top