Code covered by the BSD License  

Highlights from
exciseRows

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 1.09 KB File ID: #24893

exciseRows

by Alexander Taylor

 

31 Jul 2009

A helper function. Removes all rows with NaNs.

| Watch this File

File Information
Description

A simple two-line function that removes rows with NaNs.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
01 Aug 2009 us

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

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
helper function Alexander Taylor 31 Jul 2009 14:02:33
toolkit Alexander Taylor 31 Jul 2009 14:02:34

Contact us at files@mathworks.com