Search code examples
matlabsignal-processinglowpass-filter

Designing a low-pass filter in Matlab


I am new to MATLAB so go easy on me.

I am wondering how I would design a low-pass filter to filter out the high frequency component of a signal. The signal is a sine wave of low frequency combined with a sine wave of high frequency, and the sampling rate is 1000Hz.

Thanks for your help.


Solution

  • Edit

    I misunderstood. I thought you wanted to filter out a single frequency component. You said your signal consisted of a sine wave at a low frequency with a sine wave at a high frequency. As such, I figured a notch filter would be sufficient.

    In terms of LPF design, it depends on what kind of filter you want. There are many topologies - Butterworth, Chebyshev, etc.

    I would recommend you take a look at MathWorks - in particular, their examples on LPF design. Look here: http://www.mathworks.com/help/dsp/examples/designing-low-pass-fir-filters.html

    Once you extract the right coefficients for your FIR filter, you can then use filter to filter your signal.

    Good luck!