Hello Fellow Developer,
i have been given a 100×13 Matrix with Integers in it. But in one cell there is NaN written in it.
I know that the cell with NaN is in column two, so I tried the following code: But my Variable k never changes to one.
for i=1:100 if Matrix(i, 2) == 'NaN' k = 1 endend
Best Answer