35 views (last 30 days)

hello all,

I am trying to reduce / remove power line noise and its harmonic from a short signal. The frequency resolution of the fft of the signal is 40 Hz which makes using the notch filter very challenging, Is there any method that I can apply to reduce powerline noise without hurting the signal iteslef?

Star Strider
on 22 Jan 2021

‘... the sampling rate I have is 19200 Hz but the data is cut in epochs of 480 samples(non continous) and as such makes the frequency bin size 40 Hz.’

That is entirely different. You can use the approach in How to apply three notch filters of 3rd order? to create your filter. It will filter the original 50 Hz mains noise and selected harmonics harmonics of it. It is straightforward to adapt it to your problem.

The sampling intervals must be constant for this (or any signal processing) approach to work. If they are not, use the Signal Processing Toolbox resample function to interpolate your signal to constant sampling intervals. Then, design the filter to work with your selected sampling frequency in the resampled signal vector.

Star Strider
on 22 Jan 2021

My pleasure!

I will need more information (preferably the signal as well) to adapt this filter to your needs.

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

Start Hunting!
## 7 Comments

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279123

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279123

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279133

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279133

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279148

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279148

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279253

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279253

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279278

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279278

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279288

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279288

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279588

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/724283-how-to-remove-reduce-power-line-noise-from-a-short-signal#comment_1279588

Sign in to comment.