Getting a mean of only the numbers
Mostra commenti meno recenti
I have a dataset and I want the mean value of the numbers. There are a lot of NaN-values in there and I want to ignore those (the code
mean(data)
now gives 'NaN' as answer) How do I do this?
Risposta accettata
Più risposte (1)
Thorsten
il 9 Ott 2014
1 voto
Use nanmean
1 Commento
Mischa Kim
il 9 Ott 2014
That's another option. You need to have access to the Statistics Toolbox though.
Categorie
Scopri di più su Descriptive Statistics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!