How can I get the transfer function?
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)
Answers (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)
.
Categories
Find more on Mathematics 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!
