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 件)

Sam Chak
Sam Chak 2023 年 4 月 5 日
編集済み: Sam Chak 2023 年 4 月 5 日

0 投票

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 日
oke thanks you very much and so how can i simulate it and analyze the response step on simulink?
Sam Chak
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
Kaizi 2023 年 4 月 5 日
thanks you
Sam Chak
Sam Chak 2023 年 4 月 5 日
Hi @Kaizi, don't forget to accept thw Answer. 🙏

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGeneral Applications についてさらに検索

製品

質問済み:

2023 年 4 月 5 日

コメント済み:

2023 年 4 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by