CMU
UM


Plotting Frequency Response


In order to illustrate the plotting of G(jw), we will generate our own plot of G(j*w)and compare it with the Bode plots and the Nyquist diagram. If we run the following m-file, we will see the points that comprise G(jw), in particular the point corresponding to G(j*3).

The image should look similar to this:

Please note that each yellow cross represents the transfer function evaluated at a specific frequency and that only positive frequencies are used. Also note the point and vector associated with a frequency of 3 rad/s (green). In the Matlab command window, you should see the Magnitude, Phase, and Gain (in dB) associated with this vector:

Note: a decibel is defined as 20*log10 ( |G(j*w| )

		Mag =
			1.3558
		
		Phase =
			139.3987
		
		Gain =
			2.6440

Bode representation

The Bode plots take each one of the points on the above plot and breaks it down into magnitude and phase. The magnitude is then plotted as gain in decibels and the phase is plotted in degrees. The frequency (on the independent axis) is plotted on a logarithmic scale. Let's take a look at the Bode plots for this function and see if our answers match.

If you look at the plots at a frequency of 3rad/s you will see the magnitude is a little over 2.5 dB and the phase is around 140 degrees. This agrees with our previous results.

Nyquist Representation

Now that we know where Bode plots come form, let's see where Nyquist plots come from. The Nyquist diagram is basically a plot of G(j*w). However, both positive and negative frequencies of the contour we showed previously are taken into account. Let's plot the Nyquist diagram on top of our G(j*w) plot (this time, we will include the negative frequencies as well).

A perfect match! Also note that the negative frequencies produce a mirror image across the real axis of the positive frequency response.


Use the "Back" button of your browser to return to the previous page

8/27/96 LJO