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일
The right hand side is
tf([-R2*C1, 0], [R1*C1, 1]) / tf([1], [R2*C2, 1])

댓글 수: 2

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2018년 1월 28일

댓글:

2018년 1월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by