Repository navigation
Question on Filter implementation #718
Unanswered
hadamard-zweistein
asked this question in
Q&A
Replies: 2 comments 3 replies
|
Hi, You can use the forced_response time domain simulation to filter a signal: R = forced_response(Htest, U=x)
y = R.yBut if you are dealing with SISO signals only, there may be no need to include python-control into your dependency stack. You can do everything with Scipy: https://scipy.github.io/devdocs/reference/generated/scipy.signal.lfilter.html#scipy.signal.lfilter: from scipy.signal import lfilter
b = c1*np.array([1, 1])
a = np.array([1, c2])
y = lfilter(b, a, x) |
1 reply
|
@bnavigator, one more question on complex coefficients. Is there a way of using the forced_response method to compute Fourier transforms, for instance, to implement a Goertzel algorithm? I get the warning, that the imaginary parts are ignored... Thank you! Hadamard-Zweistein |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am interested in using the discrete transfer functions from the control library to filter signals and compute Fourier transforms.
For instance, given a discrete first order butterworth filter
How do I apply "Htest" on a signal "x" in order to obtain the filtered signal? Is there already a feature for that?
Likewise it would be very practical to use the transfer function of the Goertzel alg. to compute a fourier transform of a signal.
Thank you!
Hadamard-Zweistein
All reactions