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

Mathieu NOE
Mathieu NOE 2021년 2월 23일
hello
you can simply do
a = a - mean(a);
NB : you can also use the detrend function
Xuefei Sun
Xuefei Sun 2021년 2월 23일
That's it. Thank you!
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일

0 개 추천

hello
you can simply do
a = a - mean(a);
NB : you can also use the detrend function

추가 답변 (0개)

태그

질문:

2021년 2월 23일

답변:

2021년 2월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by