Plot transfer function with input
显示 更早的评论
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 个)
Hi @Kaizi
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])
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
2023-4-5
Sam Chak
2023-4-5
You are welcome, @Kaizi. If you find the solution helpful, please consider accepting ✔ and voting 👍 on the answer. Thanks a bunch! 🙏
Regarding the Simulink, use the Step Block and (double-click) set the FInal value to the desired value. In your case, set 3.
Kaizi
2023-4-5
类别
在 帮助中心 和 File Exchange 中查找有关 General Applications 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

