Problem with the mean function
Mostrar comentarios más antiguos
Hi everyone,
I've got a little pb with the 'mean' function :
My matrix has a class 'double' on my workspace : <70080*1 double> I would like to do an average of those values :
moyenne = mean(refoulement(1:8760,1)) and the answer is NaN. The values are positives.
Do you have an idea ?
Thanks !
Respuesta aceptada
Más respuestas (3)
Image Analyst
el 2 de Mayo de 2012
What does this say:
hasNans = max(isnan(refoulement))
I want to see if there are any nan's in your original matrix.
Sean de Wolski
el 2 de Mayo de 2012
If you have the Stats Toolbox, take a peak at:
doc nanmean
Also this FEX submission:
Alexandre
el 2 de Mayo de 2012
0 votos
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!