How to correct for drift in a signal not using detrend

조회 수: 5 (최근 30일)
Rebecca Ellis
Rebecca Ellis 2018년 10월 2일
편집: dpb 2018년 10월 2일
I have a 30 hour data set, where I am interested in taking out the drift the last 10 hours of the dataset. It is very important to keep the dataset at the same length as I started as I have other sensors in the system that I am looking at with this signal. I have tried:
sdata = oxygen_unisense.data;
oxygen_unisense.detrend = detrend(sdata(3.715958429982246e+06:end));
oxygen_unisense.mean = oxygen_unisense.data - oxygen_unisense.detrend;
but this puts the part of the signal to zero.
Anyone with suggestions?
Data: https://www.dropbox.com/s/c8uy84e2ndem1nl/oxygen_unisensemathelp.mat?dl=0
  댓글 수: 12
Rebecca Ellis
Rebecca Ellis 2018년 10월 2일
SOrry the data is too big to attach, i tried to attach it.
dpb
dpb 2018년 10월 2일
편집: dpb 2018년 10월 2일
Only need the section of interest and it could be decimated by 10X or more and saved as .mat file and be just as useful as the full thing.
detrend ought to be able to do what your code does automagically given the breakpoint(s).

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by