📄 nndef.m
字号:
function y=nndef(x,d)%NNDEF Replace missing and NaN values with defaults.% % *WARNING*: This function is undocumented as it may be altered% at any time in the future without warning.% NNDEF(X,D)% X - Row vector of proposed values.% D - Row vector of default values.% Returns X with all non-finite and missing values with% the corresponding values in D.%% EXAMPLE: x = [1 2 NaN 4 5];% d = [10 20 30 40 50 60];% y = nndef(x,d)% Mark Beale, 12-15-93% Copyright (c) 1992-94 by the MathWorks, Inc.% $Revision: 1.1 $ $Date: 1994/01/11 16:26:16 $y = d;i = find(finite(x(1:min(length(x),length(y)))));y(i) = x(i);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -