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 comentarios

Mathieu NOE
Mathieu NOE el 23 de Feb. de 2021
hello
you can simply do
a = a - mean(a);
NB : you can also use the detrend function
Xuefei Sun
Xuefei Sun el 23 de Feb. de 2021
That's it. Thank you!
Image Analyst
Image Analyst el 23 de Feb. de 2021
@Mathieu NOE Please move your answer down to the Answer section below.
Mathieu NOE
Mathieu NOE el 24 de Feb. de 2021
will do... tx

Iniciar sesión para comentar.

 Respuesta aceptada

Mathieu NOE
Mathieu NOE el 24 de Feb. de 2021

0 votos

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

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 23 de Feb. de 2021

Respondida:

el 24 de Feb. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by