ndnanfilter.m

Filter/smoothing of multidimensional data with an specified window function, ignoring NaNs.
6.6K 次下载
更新时间 2016/5/4

查看许可证

NDNANFILTER N-dimensional zero-phase digital filter, ignoring NaNs.

SHORT SYNTAX:
[Y,W] = ndnanfilter(X,HWIN,F);

SHORT INPUT:
X - Multidimensional data with/without NaNs.
HWIN - Window's name (N-D moving average by default: 'rectwin').
F - Vector specifying the semi-width of the window for each dimension.
SHORT OUTPUT:
Y - Filtered/smoothed X data (same size as X!) with zero phase shift.
W - N-dimensional window with central symmetry generated by a special subfunction called NDWIND.

SHORT DESCRIPTION:
This function applies a N-dimensional convolution of X with W, using the MATLAB's IMFILTER or CONVN function, ignoring/interpolating/filling NaNs.

By default, the edges are padded with the values of X at the borders with the PADARRAY MATLAB's function. When PADARRAY is not found, the program performs zero-padding.

SHORT NOTE:
* See the screenshot.

引用格式

Carlos Adrian Vargas Aguilera (2026). ndnanfilter.m (https://ww2.mathworks.cn/matlabcentral/fileexchange/20417-ndnanfilter-m), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Digital Filter Analysis 的更多信息
版本 已发布 发行说明
1.0.0.0

BSD License
Fixed bug: ynan = any(inan(:)) instead of any(inan).