필터 지우기
필터 지우기

How do I remove a known trendline from data?

조회 수: 4 (최근 30일)
Gail Distefano
Gail Distefano 2022년 8월 26일
댓글: Gail Distefano 2022년 8월 26일
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.

답변 (1개)

KSSV
KSSV 2022년 8월 26일
Use polyfit, fit a striaght line and subtract this from the data.
  댓글 수: 1
Gail Distefano
Gail Distefano 2022년 8월 26일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by