No BSD License  

Highlights from
REMNAN

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 2.13 KB File ID: #10863

REMNAN

by Karsten Shein

 

25 Apr 2006 (Updated 27 Apr 2006)

Removes missing values jointly from 2 vectors.

| Watch this File

File Information
Description

Removes missing (NaN) values from 2 vector series, either as a function of the missing values in one, the other, or both jointly. Written originally in V. 4, but should work in earlier versions of Matlab.

MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
26 Apr 2006 John D'Errico

But why submit the same file twice? This creates unnecessary clutter. You have the ability to just update the original file, so please do so. (And delete the replicate you have now created.)

Please login to add a comment or rating.
Updates
27 Apr 2006

Tightened code.
Changed:
if nargout == 1 & nargin ~= 1,
 z = size(x1); z0 = size(y1);
 if z ~= z0, y1 = y1'; end;
 if z(1) > z(2), x1 = [x1,y1]; else, x1 = [x1;y1]'; end;
end;
To:
if nargout == 1 & nargin ~= 1, x1 = [x1(:) y1(:)]; end;

Tag Activity for this File
Tag Applied By Date/Time
remove Karsten Shein 22 Oct 2008 08:23:16
nan Karsten Shein 22 Oct 2008 08:23:16
missing values Karsten Shein 22 Oct 2008 08:23:16
joint Karsten Shein 22 Oct 2008 08:23:16
utilities Karsten Shein 22 Oct 2008 08:23:16

Contact us at files@mathworks.com