How to remove the mean from a data

24 vues (au cours des 30 derniers jours)
Xuefei Sun
Xuefei Sun le 23 Fév 2021
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 commentaires
Image Analyst
Image Analyst le 23 Fév 2021
@Mathieu NOE Please move your answer down to the Answer section below.
Mathieu NOE
Mathieu NOE le 24 Fév 2021
will do... tx

Connectez-vous pour commenter.

Réponse acceptée

Mathieu NOE
Mathieu NOE le 24 Fév 2021
hello
you can simply do
a = a - mean(a);
NB : you can also use the detrend function

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by