pushNaNs

バージョン 1.0.0.0 (1.93 KB) 作成者: Daniel
Pushes NaNs to the bottom of each column of X.
ダウンロード: 201
更新 2013/4/30

ライセンスの表示

X = pushnans(X,truncate)

Pushes nans to the bottom of each column of X. It should be pretty fast.

The second input is an optional flag. If true, the whole-nan rows at the bottom of X are removed.

Two slightly different algorithms are implemented in the function together with a simple check to select the faster version: which is faster depends on what fraction of the input matrix is non-NaN.

Note that only limited testing has been done - please report problems below. I would also be interested to hear if there are more efficient ways of implementing this.

引用

Daniel (2024). pushNaNs (https://www.mathworks.com/matlabcentral/fileexchange/41559-pushnans), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2012b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersNaNs についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

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