In the documentation on lowpass
I found this:
y = lowpass(x,wpass)
filters the input signalx
using a lowpass filter with normalized passband frequencywpass
in units of π rad/sample.lowpass
uses a minimum-order filter with a stopband attenuation of 60 dB and compensates for the delay introduced by the filter. Ifx
is a matrix, the function filters each column independently.
y = lowpass(x,fpass,fs)
specifies thatx
has been sampled at a rate offs
hertz.fpass
is the passband frequency of the filter in hertz.
But it seems like the second one, y = lowpass(x,fpass,fs)
, does not really use Hz since it does not filter the frequencies above that goven by fpass
.
How I can use the first one? How can I calculate the wpass
if I want a lowpass filter with cutoff frequency x
? Do I need to do wpass = x/samplerate
? I'm a little bit confused with those radians.