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
2023-12-7
Hi @Matthew
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 = tf(G)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!