I want to check if the final value of the string is 'NaN'
parents=[2 3 1 NaN];f = parents(size(parents,2));if f == 'NaN' check=0else check=1end
arrayif statement
parents=[2 3 1 NaN];f = parents(size(parents,2));if f == 'NaN' check=0else check=1end
Best Answer