The mean of a subset of data

4 Ansichten (letzte 30 Tage)
John
John am 7 Jan. 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

Akzeptierte Antwort

José-Luis
José-Luis am 7 Jan. 2013
mean(your_data(your_data>0));

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by