How to put this write this transfer function into MATLAB?

Hello,
Im designing a inverting bandpass filter and trying to compare its bode plot response to other filters. I am struggling to place this transfer function such that I create a bode plot. I won't waste your time with what I have tried but im getting wrong bode plot outputs. I have attached the transfer function below, where Vo/Vi = H(s). s = jw(omega) = j2*pi*f. I assume f is the frequency the bode plot is supposed to be sweeping. Any assistance would be greatly appreciated.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 28 Jan. 2018
Bearbeitet: Walter Roberson am 28 Jan. 2018
The right hand side is
tf([-R2*C1, 0], [R1*C1, 1]) / tf([1], [R2*C2, 1])

2 Kommentare

Wasn't aware you could have an transfer function for each, thanks.
You could also expand out the (1+SR1C1)(1+sR2C2) to get
s^2*R1*R2*C1*C2 + s*(R1*C1+R2*C2) + 1
which would be [R1*R2*C1*C2, R1*C1+R2*C2, 1] as an argument, leading you to
tf([-R2*C1, 0], [R1*R2*C1*C2, R1*C1+R2*C2, 1])
as the single transfer function

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by