Removing DC component of a signal

Status
Not open for further replies.

cc12

Newbie level 2
Joined
Aug 29, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
UK
Activity points
1,294
removing dc signal

Hi,

I want to normalize a signal and generate the power spectrum in matlab SP tool box. I used following command to normalize the signal.

=x1-mean(x1);

But, still there is very big DC components appears in the power spectrum. Can you please explain me how to eliminate this? Here I have attached a piece of my signal.
 

power of signal dc component

Can you please explain me little bit about using a lowpass filter? I have sent a sample of my data.

Best
cc12
 

spectrum dc component

=x1-mean(x1); is by definition exactly removing the DC component. However, after applying a window or cutting out part of the data, you'll see a non-zero DCcomponent again. It can't be "very big", absolutely.
 

power dc component

Hello!

To be accurate, mean(x) is a low pass filter.
x-mean(x) is a high pass filter.

The problem of moving average is that you cannot get a very sharp
response. Look here for more detail.
If you want a good filter quite simple to implement, sharp, etc..., you may
consider a 2nd order IIR.

Dora.


 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…