Mean doesn't work

6 次查看(过去 30 天)
Venkat Ta
Venkat Ta 2017-7-6
Hi, I have doubt in mean. if we have more than 10000 rows why mean doesn't work actually sum also does not work. for example, All_measured = 43472*30 double and the mean formula: mean(All_measured ,2) but the answer is 43472*1 full of NaN Any suitable ideas are very appreciable.

采纳的回答

Star Strider
Star Strider 2017-7-6
Try this:
mean(All_measured ,2, 'omitnan')
or:
nanmean(All_measured ,2)
  4 个评论
Venkat Ta
Venkat Ta 2017-7-7
Perfect. Thanks a lot.
Star Strider
Star Strider 2017-7-7
As always, my pleasure.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by