0
\$\begingroup\$

I need a bode plot for a transfer function from matlab which I never did before. I tried some examples but failed. How to do this on matlab? Here is the TF:

enter image description here

\$\endgroup\$
4
  • 1
    \$\begingroup\$ Make \$s = j\omega\$ and solve. \$\endgroup\$
    – Andy aka
    May 9 at 15:19
  • 2
    \$\begingroup\$ Use the function tf (link to documentation) to build your transfer function, then bode (link to documentation) to plot. You don't show those examples that you tried, so people might conclude that you're tying to make them do your job. \$\endgroup\$ May 9 at 15:26
  • \$\begingroup\$ @Andyaka Thank you. \$\endgroup\$
    – Das D.
    May 9 at 15:37
  • \$\begingroup\$ @aconcernedcitizen Thank you. \$\endgroup\$
    – Das D.
    May 9 at 15:37
0
\$\begingroup\$

Assuming wp0 = C , wz1 = Z1 , wz2 = Z2; wp1 = p1, wp2 = p2

expand the the numerator and denominator as follows Numerator of TF = C*(((s^2/(z1z2)) +(s(z1+z2)/z1z2) + (1/z1/z2))) Denominator of TF = (((s^3/(p1*p2)) +(s^2(p1+p2)/p1p2) + (s/p1/p2)))

the code in matlab to implement this is as follows

sys = tf([C*(1/z1z2) C*((z1+z2)/z1z2)) C*(1/z1/z2)],[(1/(p1*p2)) ((p1+p2)/p1p2) (1/p1/p2) 0]);

bode(sys);

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.