REMNAN

Removes missing values jointly from 2 vectors.

You are now following this Submission

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.

Cite As

Karsten Shein (2026). REMNAN (https://nl.mathworks.com/matlabcentral/fileexchange/10863-remnan), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Export figure to 3D interactive PDF

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

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;