Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
0 of .
Results for:
P. 1
How to draw Bode Diagram, Polar Plot and Nyquist Diagram for Control Systems via MATLAB

# How to draw Bode Diagram, Polar Plot and Nyquist Diagram for Control Systems via MATLAB

Ratings: (0)|Views: 6,346|Likes:

How to draw Bode Diagram, Polar Plot and Nyquist Diagram for Control Systems via MATLAB Nima Fouladinejad

1. Example (6.8) To draw the bode diagram in MATLAB we simply write these in the command window of MATLAB. s=tf('s') Transfer function: s h=(10*(1+.5*s))/(s*(1+10*s)*(1+2*s)) %write the transfer function in MATLAB (sys name

How to draw Bode Diagram, Polar Plot and Nyquist Diagram for Control Systems via MATLAB Nima Fouladinejad

1. Example (6.8) To draw the bode diagram in MATLAB we simply write these in the command window of MATLAB. s=tf('s') Transfer function: s h=(10*(1+.5*s))/(s*(1+10*s)*(1+2*s)) %write the transfer function in MATLAB (sys name

### Availability:

See more
See less

06/11/2013

pdf

text

original

How to draw Bode Diagram, Polar Plot and Nyquist Diagram for Control Systems viaMATLAB
1. Example (6.8)
To draw the bode diagram in MATLAB we simply write these in the command window of MATLAB.s=tf('s')%to identify the transfer function variable. Transfer function:sh=(10*(1+.5*s))/(s*(1+10*s)*(1+2*s))%write the transfer function in MATLAB (sys name = h)Transfer function:5 s + 10-------------------------20 s^3 + 12 s^2 + sbode(h)%command to Draw the bode diagramAnd here is the MATLAB Bode diagram for this exercise. You can see the Gain Margin, PhaseMargin, correspond frequency and the stability of the system in the figure.

Exercise 6.1:
Draw the polar plot of the frequency response diagram for the system shown bellow.u yThe transfer function is like this.


We can simply use this transfer function and draw the Nyquist diagram in MATLAB as follow.>> s=tf('s')%to identify the transfer function variable Transfer function:s>> G=(1/s)*(10/(1+0.1*s))*(1/(1+0.02*s))%write the transfer function in MATLAB Transfer function:10------------------------------



0.002 s^3 + 0.12 s^2 + s>> nyquist(G)%command to Draw the Nyquist diagramAnd here is the MATLAB Nyquist diagram for this exercise. You can see the Gain Margin, PhaseMargin, correspond frequency and the stability of the system in the figure.
Exercise 6.2:
For the control system shown below, plot the Nyquist diagram for K=1, and obtain the gain marginand phase margin. Verify the answer by calculation.
+-
The transfer function is like this.







We can simply use this transfer function and draw the Nyquist diagram in MATLAB as follow.>> s=tf('s')%to identify the transfer function variable Transfer function:s>> G=10/((s*(1+0.1*s)*(1+0.02*s))+10)%write the transfer function in MATLAB Transfer function:

