How can i write this code and plot it on matlab?

조회 수: 6 (최근 30일)
Batuhan Samet Demirci
Batuhan Samet Demirci 2021년 12월 30일
댓글: Star Strider 2021년 12월 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) )
  댓글 수: 1
Batuhan Samet Demirci
Batuhan Samet Demirci 2021년 12월 30일
You can see details on the photo which is in attached file

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

채택된 답변

Star Strider
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 = 10 ------------ 70.47 s + 10 Continuous-time transfer function.
H(2) = (R/L)*s / ( s^2 + (R/L)*s + 1/(L*C) )
H = From input 1 to output: 10 ------------ 70.47 s + 10 From input 2 to output: 0.6689 s ---------------------- s^2 + 0.6689 s + 3.713 Continuous-time transfer function.
figure
step(H)
I have no idea what is writtien on the whiteboard. Plot whatever it requires.
.
  댓글 수: 4
Batuhan Samet Demirci
Batuhan Samet Demirci 2021년 12월 30일
Thank you so so much.....
Star Strider
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개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by