How can i write this code and plot it on matlab?
5 次查看(过去 30 天)
显示 更早的评论
I have a TF of H(s) and i dont know how to write code to plot it on matlab . We already solved it and i wanna use matlab to see if result are true. Can you help me please?
R= 10 k ohm.
L = 14.95 mH
C= 0.018013 pF
H(s) = R / ( R + Ls + (1 / Cs) ) = (R/L)s / ( s^2 + (R/L)s + 1/(LC) )
采纳的回答
Star Strider
2021-12-30
I would be tempted to use the Control System Toolbox —
R= 10; % k ohm.
L = 14.95; % mH
C= 0.018013; % pF
s = tf('s');
H(1) = R / ( R + L*s + (1 / C*s) )
H(2) = (R/L)*s / ( s^2 + (R/L)*s + 1/(L*C) )
figure
step(H)
I have no idea what is writtien on the whiteboard. Plot whatever it requires.
.
4 个评论
Star Strider
2021-12-30
My pleasure!
I mistyped some of the unit conversions. The code is now correct.
If my Answer helped you solve your problem, please Accept it!
.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




