필터 지우기
필터 지우기

Plot problem after DC offset

조회 수: 3 (최근 30일)
John Smith
John Smith 2015년 11월 4일
답변: Star Strider 2015년 11월 4일
Hi all,
I am plotting an EMG signal which is loaded from a text file. The original signal is shown in the top plot of the attached image. When performing DC offset removal from the raw signal I am getting two lines, one in green and one in blue (second figure). Why is this? How can I keep the green signal only? Below is the code used for removing the DC offset:
EMG_DCoffset_removed = detrend(raw_EMG);
figure(1);
plot(EMG_DCoffset_removed);

답변 (1개)

Star Strider
Star Strider 2015년 11월 4일
I cannot duplicate your results with this simulation or with a constant offset:
raw_EMG = rand(1, 1000) + (1:1000)/100;
EMG_DCoffset_removed = detrend(raw_EMG);
figure(1);
plot(EMG_DCoffset_removed);
hold on
plot(raw_EMG)
What did you do to make MATLAB angry at you?

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by