bandpass filter design of simulink

3 views (last 30 days)
Yang Xu
Yang Xu on 10 Nov 2020
Answered: Mathieu NOE on 10 Nov 2020
A signal, which is a output of a simulink submodel with harmonic frequency at 20-30Hz, has great influence on system control performance.
You can consider this signal as a analog signal, is there any method can be applied to extract these harmonics without phase shift?
I thought that bandpass filter might be a good choice, but i have no idea in digital filter and how to use the @simlink submodel "bandpass filter", as shown in the following figure.
So i am wonder is there any other substitute options to bulid a bandpass filter with narrow bandwidth and fast roll-off, for example, use transfer function?Can anyone give me some advice?

Answers (1)

Mathieu NOE
Mathieu NOE on 10 Nov 2020
hello
these are some examples of digital filters - from their analog versions
you can generate the a and b coefficients from this script and simply pass them to Simulink IIR filter (using the z^-1 representation in the numerator and denominator)

Community Treasure Hunt

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

Start Hunting!