
clc
clear all

a=0/0;


if a==NaN
   b=1
   
elseif strcmp(a,'NaN')
    b=2
elseif isnan(a)
    b=3
end 

