How do I create a transfer function using the zp2tf function with following poles and zeros

7 次查看(过去 30 天)
Zeros = 1 -1 0.5+2i 0.5-2i poles = -0.3 3 0.2+7i 0.2-7i with a gain k of 1 and i=sqrt(-1) can seem to get the transfer function just keep getting errors could someone help with correct code thanks

回答(1 个)

Sam Chak
Sam Chak 2023-12-7
I didn't know what code you have tried. But you just need to specify the zeros, poles, and the gain correctly, and use the zpk() command, followed by the tf() commant.
z = [1 -1 0.5+2i 0.5-2i]; % zeros
p = [-0.3 3 0.2+7i 0.2-7i]; % poles
k = 1; % gain
G = zpk(z,p,k)
G = (s-1) (s+1) (s^2 - s + 4.25) ---------------------------------- (s+0.3) (s-3) (s^2 - 0.4s + 49.04) Continuous-time zero/pole/gain model.
G = tf(G)
G = s^4 - s^3 + 3.25 s^2 + s - 4.25 ----------------------------------------- s^4 - 3.1 s^3 + 49.22 s^2 - 132 s - 44.14 Continuous-time transfer function.

类别

Help CenterFile Exchange 中查找有关 Digital Filter Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by