http://users.ox.ac.uk/~kebl3336/
Watch this Author's files
no need to introduce a different output arg... simply do this
function mat=exciseRows(mat) mat(any(isnan(mat),2),:)=[]; end
two more things - the help section does not yet live up to standards... - there are no sanity checks...
us
Contact us at files@mathworks.com