No BSD License
by Karsten Shein
25 Apr 2006
(Updated 27 Apr 2006)
Removes missing values jointly from 2 vectors.
Watch this File
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.
This file inspired Export Figure To 3 D Interactive Pdf.
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.)
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;
if nargout == 1 & nargin ~= 1, x1 = [x1(:) y1(:)]; end;