How to remove the mean from a data

조회 수: 24 (최근 30일)
Xuefei Sun
Xuefei Sun 2021년 2월 23일
답변: Mathieu NOE 2021년 2월 24일
I have 90000 speed data, and I want to make each one minus the mean, how to get that?
a=speed;
aver=mean(a);
then what's the next?
  댓글 수: 4
Image Analyst
Image Analyst 2021년 2월 23일
@Mathieu NOE Please move your answer down to the Answer section below.
Mathieu NOE
Mathieu NOE 2021년 2월 24일
will do... tx

댓글을 달려면 로그인하십시오.

채택된 답변

Mathieu NOE
Mathieu NOE 2021년 2월 24일
hello
you can simply do
a = a - mean(a);
NB : you can also use the detrend function

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by