Thursday, May 7, 2015

Find and remove nan from matlab arrays

Sometimes the matrix has nans on the rows, and we would have to get rid of them before we could do any analysis.
A(any(isnan(A),2),:)=[];

No comments: