How to convert rad/sn to Hz in transfer function?
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dilay Poyraz
le 1 Juin 2018
Commenté : Dilay Poyraz
le 1 Juin 2018
I tried to plot transfer function with that code, this code give rad/sec output for the frequency, but I want to obtain frequency in hz domain. In other words how can I get horizontal line of graphic as hz.
cj=sqrt(-1);
poles=[-0.02365+0.02365*cj;
-0.02365-0.02365*cj;
-393.001;
-7.4904;
-53.5979-21.7494*cj;
-53.5979+21.7494*cj];
zeros=[-5.03207;0;0;0];
k=1;
T=zpk(zeros,poles,k);
bode(T)
Thanks in advance :)
0 commentaires
Réponse acceptée
Gökçe Öter
le 1 Juin 2018
Modifié(e) : Gökçe Öter
le 1 Juin 2018
See the doc for bodeplot, or setoptions. You can try this one;
cj=sqrt(-1);
poles=[-0.02365+0.02365*cj;
-0.02365-0.02365*cj;
-393.001;
-7.4904;
-53.5979-21.7494*cj;
-53.5979+21.7494*cj];
zeros=[-5.03207;0;0;0];
k=1;
sys = zpk(zeros,poles,k);
h = bodeplot(sys);
p = getoptions(h);
p.FreqUnits = 'Hz';
setoptions(h,p);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dynamic System Models 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!