Borrar filtros
Borrar filtros

The mean of a subset of data

2 visualizaciones (últimos 30 días)
John
John el 7 de En. de 2013
Hello,
I have a vector of acceleration values, both positive and negative negative numbers.
How could I find the mean value of the values greater than 0 only? i.e. the mean positive acceleration?
Thank you

Respuesta aceptada

José-Luis
José-Luis el 7 de En. de 2013
mean(your_data(your_data>0));

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by