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.

 採用された回答

Walter Roberson
Walter Roberson 2018 年 1 月 28 日
編集済み: Walter Roberson 2018 年 1 月 28 日

0 投票

The right hand side is
tf([-R2*C1, 0], [R1*C1, 1]) / tf([1], [R2*C2, 1])

2 件のコメント

sidA30
sidA30 2018 年 1 月 28 日
Wasn't aware you could have an transfer function for each, thanks.
Walter Roberson
Walter Roberson 2018 年 1 月 28 日
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

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by