REMNAN

版本 1.0.0.0 (949 字节) 作者: Karsten Shein
Removes missing values jointly from 2 vectors.
1.1K 次下载
更新时间 2006/4/27

无许可证

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.

引用格式

Karsten Shein (2024). REMNAN (https://www.mathworks.com/matlabcentral/fileexchange/10863-remnan), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R11
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 NaNs 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
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;