How can I get the transfer function?
Afficher commentaires plus anciens
Im not sure what I'm doing wrong. Im trying to get the TF.
clc
clear all
syms s
TF
G = (-3.2*s^2 - 2.9*s -0.025)/(((s+1.08)^2+2.1025)*((s+0.002)^2+0.0044) )
function[ans]=syms2tf(G)
[Num,Den]=numden(G)
TFnum=sum2poly(Num);
TFden=sym2poly(Den);
ans=tf(TFnum,TFden);
end
syms2tf(TF)
[Wn, Zeta, Poles]=damp(TF)
Réponses (1)
Using the Symbolic Math Toolbox is likely not appropriate here.
Try this instead —
s = tf('s');
G = (-3.2*s^2 - 2.9*s -0.025)/(((s+1.08)^2+2.1025)*((s+0.002)^2+0.0044) )
figure
bode(G)
grid
figure
impulse(G)
.
Catégories
En savoir plus sur Dynamic System Models dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

