How to remove the mean from a data

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