How do I create a transfer function using the zp2tf function with following poles and zeros
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Réponses (1)
Sam Chak
le 7 Déc 2023
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 commentaires
Voir également
Catégories
En savoir plus sur Digital Filter Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!