Hi all,
How can I say:
if (a==0 or a==NaN)
%whatever
end
Thanks.

1 commentaire

Use the below code:
if (a==0 || isnan(a))
%whatever
end

Connectez-vous pour commenter.

Réponses (2)

Community Treasure Hunt

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

Start Hunting!

Translated by