nonnan.m
来自「JLAB is a set of Matlab functions I have」· M 代码 · 共 16 行
M
16 行
function[x]=nonnan(x)%NONNAN Return all non-NAN elements of an array.%% NONNAN(X) is equivalent to X(FIND(~ISNAN(X))).% The empty set is returned if all elements of X are NANS.% _________________________________________________________________% This is part of JLAB --- type 'help jlab' for more information% (C) 2004 J.M. Lilly --- type 'help jlab_license' for details index=find(isfinite(x)); if ~isempty(index) x=x(index);else x=[];end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?