Bode Plot Transfer Function

5 vues (au cours des 30 derniers jours)
Joseph Mohane
Joseph Mohane le 5 Oct 2018
Commenté : Joseph Mohane le 5 Oct 2018
Hi Friends,
How do I only plot the magnitude of a transfer function something like this.
s^4 + s^2 + 1
------------------------------------------
s^4 + 2 s^3 +3 s^2 + 4 s + 1
I am interesting in seeing the magnitude plot only.Thank you.

Réponse acceptée

Dimitris Kalogiros
Dimitris Kalogiros le 5 Oct 2018
Here you are:
close all
clearvars
s=tf('s')
H=(s^4+s^2+1)/(s^4+2*s^3+3*s^2+4*s+1)
opts = bodeoptions('cstprefs');
opts.PhaseVisible = 'off';
bodeplot(H, opts );
grid on; zoom on;
  1 commentaire
Joseph Mohane
Joseph Mohane le 5 Oct 2018
Thank you very much.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Control System Toolbox 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!

Translated by