You are on page 1of 2

MATLAB Program to Plot the Nyquist Diagram of a given System

>> num=5;

>> p1=[1 6 100];

>> p2=[1 4 25];

>> den=conv(p1,p2);

>> h=tf(num,den)

h=

-------------------------------------

s^4 + 10 s^3 + 149 s^2 + 550 s + 2500

Continuous-time transfer function.

>> nyquist(h);
-3
x 10 Nyquist Diagram
4

1 System: h System: h System: h


Real: -0.00187 Real: 8e-23 Real: 0.002
Imaginary Axis

Imag: 7.18e-07 Imag: -1.6e-27 Imag: -8.88e-19


Frequency (rad/s): -7.42 Frequency (rad/s): -5e+05 Frequency (rad/s): -1e-20
0

-1

-2

-3

-4
-3 -2 -1 0 1 2 3
-3
Real Axis x 10

You might also like