How can I get the transfer function?

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)

Antworten (1)

Star Strider
Star Strider am 28 Apr. 2021

0 Stimmen

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) )
G = -3.2 s^2 - 2.9 s - 0.025 ------------------------------------------------ s^4 + 2.164 s^3 + 3.282 s^2 + 0.02259 s + 0.0144 Continuous-time transfer function.
figure
bode(G)
grid
figure
impulse(G)
.

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 27 Apr. 2021

Beantwortet:

am 28 Apr. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by