Borrar filtros
Borrar filtros

Mean doesn't work

2 visualizaciones (últimos 30 días)
Venkat Ta
Venkat Ta el 6 de Jul. de 2017
Comentada: Star Strider el 7 de Jul. de 2017
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.

Respuesta aceptada

Star Strider
Star Strider el 6 de Jul. de 2017
Try this:
mean(All_measured ,2, 'omitnan')
or:
nanmean(All_measured ,2)
  4 comentarios
Venkat Ta
Venkat Ta el 7 de Jul. de 2017
Perfect. Thanks a lot.
Star Strider
Star Strider el 7 de Jul. de 2017
As always, my pleasure.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by