From: Sean on
"Natalie Sin Hwee " <sin.ng09(a)imperial.ac.uk> wrote in message <i1pqh4$pmj$1(a)fred.mathworks.com>...
> Dear Mathworks users ^^
>
> I have a matrix of 800x2
> 1 NaN
> 1 NaN
> 1 NaN
> 1 NaN

> I want to :
>
> if row contains NAN, remove row completely so i end up with :
> 1 97
> 1 47
> 2 13
> 2 97
> 2 47

A = [1 2;3 4; nan 5];
A(~any(isnan(A),2),:)