Mean doesn't work
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Venkat Ta
le 6 Juil 2017
Commenté : Star Strider
le 7 Juil 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.
0 commentaires
Réponse acceptée
Star Strider
le 6 Juil 2017
Try this:
mean(All_measured ,2, 'omitnan')
or:
nanmean(All_measured ,2)
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!