Average IF NaN counting
古いコメントを表示
Hi,
I have a 20*207 matrix which contains numbers and NaN.
I need to average each column if the amount of NaN is <5. If the number of NaN is >=5 then I would like to remove that column from the matrix. How can I do it? I've been trying some stuff but I'm not able to achieve it.
thanks.
1 件のコメント
Geoff Hayes
2017 年 11 月 6 日
Afonso - what have you been trying? Please copy and paste your code to this question so that we can get an idea of what you have attempted and determine why it is not working. Presumably you are using isnan to determine which elements in your column are NaN...
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で NaNs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!