why nanmean error?
古いコメントを表示
Hi all,
I am trying to average 3d matrix that have nan values, but I am getting the following error:
Error using nanmean
Too many input arguments.
and the resulted matrix when i used mean function it doesn't show any data
any suggestion?
Thanks u
1 件のコメント
Guillaume
2018 年 12 月 24 日
any suggestion?
Clearly, you passed too many inputs to nanmean. Crucially you haven't shown us how you call nanmean so it's difficult to say exactly what you do wrong.
Note that since R2014b (I think), there is no need to use nanmean, the regular mean function can ignore nans.
採用された回答
その他の回答 (1 件)
madhan ravi
2018 年 12 月 24 日
編集済み: madhan ravi
2018 年 12 月 24 日
If your using 2018b version just use mean with 'omitnan' as a name pair
doc mean % if and only if your using 2018b to use them with n dimensions
2 件のコメント
Lilya
2019 年 1 月 3 日
madhan ravi
2019 年 1 月 3 日
Anytime :) , if you find it helpful make sure to accept the answer.
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!