23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

88 2. Tutorial<br />

In[11]:= NicholPlot[H3[I w], {w, 0.1, 5.}, AspectRatio −> 0.8,<br />

PlotPoints −> 100, PlotRange −> {{−200, −80}, {−15, 2}}]<br />

dB<br />

-2.5<br />

-150 -120 -90 deg<br />

-5<br />

-7.5<br />

-10<br />

-12.5<br />

-15<br />

Out[11]= Graphics <br />

The curve crosses the gain axis at a gain of dB, so we have a gain margin of dB. At the<br />

phase axis intersect we have a phase value of approximately ∘ which is ∘ away from the axis<br />

origin. Hence, the phase margin is ∘ .<br />

NicholPlot Options<br />

Like NyquistPlot, NicholPlot inherits its options from ListPlot. NicholPlot has additional<br />

options like, for example, PhaseDisplay (see Section 2.5.1) and FrequencyScaling (see Section 2.5.2).<br />

2.5.4 Root Locus Plots<br />

Let Hs k denote a rational transfer function whose coefficients depend on the real parameter k. A<br />

root locus plot shows the locus of the poles and zeros of Hs k in the complex plane as k varies<br />

within an interval k k .<br />

To draw a root locus plot use the command RootLocusPlot (Section 3.9.5). The calling format is<br />

RootLocusPlot[tfunc, {k, k , k }]<br />

where tfunc is a transfer function in the frequency variable s and one real parameter k.<br />

Of course, the parameter does not necessarily have to be named k. We can also use any other symbol<br />

to denote the parameter. Below, we define the transfer function H4[s, a] with coefficients which are<br />

functions of the parameter a.<br />

In[12]:= H4[s_, a_] := (a + 2*s + s^2)/(10 + 3*a*s + 4*s^2 + s^3)<br />

Then we graph the root locus of H4 as a varies from to . By default, RootLocusPlot samples<br />

the parameter interval at five equally spaced points. This number can be increased or decreased by

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!