how do i create a loop that checks checks every column one row at a time in a matrix for a double value of nan in matlab in matlab
main.m
% Assuming 'matrixA' is your matrix[m, n] = size(matrixA);
fori = 1:m
forj = 1:n
ifisnan(matrixA(i,j))
disp(['Found NaN at row ' num2str(i) ' and column ' num2str(j)]);
endendend