Borrar filtros
Borrar filtros

How do I remove a known trendline from data?

4 visualizaciones (últimos 30 días)
Gail Distefano
Gail Distefano el 26 de Ag. de 2022
Comentada: Gail Distefano el 26 de Ag. de 2022
Hi,
I have determined that the data I have captured has a systematic linear trend with gradient 0.003. Is there a straightforward way to detrend my data from this known trend. I don't want to use the function detrend because it might remove a trend specific to that acquisition in addition to the known systematic trend.

Respuestas (1)

KSSV
KSSV el 26 de Ag. de 2022
Use polyfit, fit a striaght line and subtract this from the data.
  1 comentario
Gail Distefano
Gail Distefano el 26 de Ag. de 2022
Many thanks for your answer. I'm afraid I don't understand what you mean.I don't want to fit a straight line to my data. I want to remove a slope of 0.003 from the signal in the attached figure.

Iniciar sesión para comentar.

Categorías

Más información sobre Parametric Spectral Estimation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by