Plot transfer function with input

3 vues (au cours des 30 derniers jours)
Kaizi
Kaizi le 5 Avr 2023
Commenté : Sam Chak le 5 Avr 2023
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.

Réponses (1)

Sam Chak
Sam Chak le 5 Avr 2023
Modifié(e) : Sam Chak le 5 Avr 2023
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 commentaires
Kaizi
Kaizi le 5 Avr 2023
thanks you
Sam Chak
Sam Chak le 5 Avr 2023
Hi @Kaizi, don't forget to accept thw Answer. 🙏

Connectez-vous pour commenter.

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by