Plot transfer function with input

조회 수: 3 (최근 30일)
Kaizi
Kaizi 2023년 4월 5일
댓글: Sam Chak 2023년 4월 5일
Hello there.
I have a transfer function of OP AMP:
And how do I plot step(g) with input Vi(t) = 3V ?I have no idea how to
Thanks.

답변 (1개)

Sam Chak
Sam Chak 2023년 4월 5일
편집: Sam Chak 2023년 4월 5일
Here are two simplest ways to do it:
Method 1:
Vi = 3; % input
G = tf([1.8 2.4 0], [0.72 1.8 1])
G = 1.8 s^2 + 2.4 s -------------------- 0.72 s^2 + 1.8 s + 1 Continuous-time transfer function.
step(Vi*G)
Method 2:
t = linspace(0, 7, 701); % sim time
u = Vi*ones(1, length(t)); % input
lsim(G, u, t)
  댓글 수: 4
Kaizi
Kaizi 2023년 4월 5일
thanks you
Sam Chak
Sam Chak 2023년 4월 5일
Hi @Kaizi, don't forget to accept thw Answer. 🙏

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by