23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

84 2. Tutorial<br />

In[3]:= BodePlot[H1[I w], {w, 0.001, 1000.}]<br />

Magnitude (dB)<br />

60<br />

40<br />

20<br />

0<br />

-20<br />

-40<br />

-60<br />

1.0E-3 1.0E-2 1.0E-1 1.0E0 1.0E1 1.0E2 1.0E3<br />

Frequency<br />

Phase (deg)<br />

0<br />

-25<br />

-50<br />

-75<br />

-100<br />

-125<br />

-150<br />

-175<br />

1.0E-3 1.0E-2 1.0E-1 1.0E0 1.0E1 1.0E2 1.0E3<br />

Frequency<br />

Out[3]= Graphics <br />

BodePlot Options<br />

The output generated by BodePlot is influenced by a number of options listed in<br />

Options[BodePlot], many of which are inherited from Options[LogLinearListPlot] from Mathematica’s<br />

standard package Graphics‘Graphics‘. Here, we will discuss only some of those options<br />

which pertain exclusively to BodePlot or which must be used with a different syntax as compared<br />

to LogLinearListPlot. The relevant options and their default settings are listed below. Defaults<br />

are listed first, followed by the possible alternatives printed in slanted typewriter font.<br />

MagnitudeDisplay −> Decibels | AbsoluteValues | Linear<br />

PhaseDisplay −> Degrees | Radians<br />

PlotRange −> {Automatic, Automatic}<br />

The option MagnitudeDisplay controls the display of the magnitude values. When set to<br />

AbsoluteValues, magnitude values are not converted to decibels. Instead the absolute numerical<br />

values are displayed on a logarithmic scale. When MagnitudeDisplay is set to Linear, magnitude<br />

values are displayed on a linear scale. In a strict sense, the latter does no longer constitute a true<br />

Bode plot, but there exist a few applications where linear magnitude scaling is useful.<br />

With the value of the option PhaseDisplay we can choose whether phase values are shown as<br />

degrees or as radians.<br />

The meaning of the PlotRange option is slightly different for BodePlot than for other Mathematica<br />

plotting commands. Here, the value of PlotRange must be a list of two elements, {range m<br />

, range p<br />

},<br />

specifying the plot ranges of the y-axes of the magnitude and the phase chart respectively. PlotRange<br />

has no effect on the ranges of the x-axes as these are determined by the given frequency range. The<br />

format for both y-ranges is the usual one as documented in the Mathematica manual, so any of the<br />

forms below are valid syntax:

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

Saved successfully!

Ooh no, something went wrong!