The mean of a subset of data

2 ビュー (過去 30 日間)
John
John 2013 年 1 月 7 日
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

採用された回答

José-Luis
José-Luis 2013 年 1 月 7 日
mean(your_data(your_data>0));

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by