How can I get the transfer function?
1 view (last 30 days)
Show older comments
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)
0 Comments
Answers (1)
Star Strider
on 28 Apr 2021
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)
.
0 Comments
See Also
Categories
Find more on Dynamic System Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!