ndnanfilter.m

Filter/smoothing of multidimensional data with an specified window function, ignoring NaNs.
ダウンロード: 6.5K
更新 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 (2024). ndnanfilter.m (https://www.mathworks.com/matlabcentral/fileexchange/20417-ndnanfilter-m), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersDigital Filter Analysis についてさらに検索
謝辞

ヒントを得たファイル: moving_average v3.1 (Mar 2008)

ヒントを与えたファイル: imagescnan.m v2.1 (Aug 2009), filt2 2D geospatial data filter

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0

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