How a bandpass filter (BP) can be made

4 次查看(过去 30 天)
Sonia
Sonia 2022-12-17
回答: Star Strider 2022-12-17
How a bandpass filter (BP) can be made, with cutoff frequencies of 500 Hz and 1 kHz, to process an audio signal sampled at 8 ksps in its FIR version with 64 taps. Specifying the values for the cutoff frequency fp and the stop frequency fs, in terms of the Nyquist frequency, and of a BP filter in its IIR version of order 5.
An audio is attached, in wav format, corresponding to a signal sampled at 8ksps, from this audio file, do what is necessary to obtain the reference sequence, as a Matlab vector, and process it with the requested filter to be able to compare, in each case , the frequency spectrum of the output stream with respect to the frequency spectrum of the input stream.

回答(1 个)

Star Strider
Star Strider 2022-12-17
Since you apparently are supposed to code it using command-line function calls in a script, and you are limited to an order 5 filter, I suggest that you start with ellipord or ellip and go from there. Use the zp2sos function to realise the filter, and use filtfilt to do the actual filtering.
The rest should be straightforward.

类别

Help CenterFile Exchange 中查找有关 Digital Filter Design 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by