Prev: box plots with 2 different y axes
Next: xlsread, biffparse, compatibility problem of windows and mac
From: Sean on 16 Jul 2010 10:42 "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),:) |