필터 지우기
필터 지우기

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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by