functionfrequencyResponsePlot

Bode plot given f,A,phi values

Extends from Modelica.Icons.Function (Icon for functions).

Information

Syntax

ZerosAndPoles.Plot.bode(zp)
   or
ZerosAndPoles.Plot.bode(
  zp,
  nPoints,
  autoRange,
  f_min,
  f_max,
  magnitude=true,
  phase=true,
  diagram=Modelica_LinearSystems2.Internal.DefaultDiagramBodePlot(),
  device=Modelica_LinearSystems2.Utilities.Plot.Records.Device() )

Description

This function plots the bode-diagram of a transfer function.

Example

  ZerosAndPoles p = Modelica_LinearSystems2.ZerosAndPoles.p();
  Modelica_LinearSystems2.ZerosAndPoles zp =(p^2 + 5*p + 7)/(p + 2)/(p + 3);

algorithm
  Modelica_LinearSystems2.ZerosAndPoles.Plot.bode(zp)
//  gives:

Inputs

TypeNameDefaultDescription
Real[:]fFrequency vector (either in Hz or rad/s)
Real[size(f, 1)]aAbsolute value/magnitude vector (either without unit or in dB)
Modelica.Units.NonSI.Angle_deg[size(f, 1)]phiAngles in degree
BooleanautoRangetrue= true, if abszissa range is automatically determined
SI.Frequencyf_min0.1Minimum frequency value, if autoRange = false
SI.Frequencyf_max10Maximum frequency value, if autoRange = false
Booleanmagnitudetrue= true, to plot magnitude
Booleanphasetrue= true, to plot phase
BooleanHztrue= true, to plot abszissa in [Hz], otherwise in [rad/s] (= 2*pi*Hz)
BooleandBfalse= true, to plot magnitude in [], otherwise in [dB] (=20*log10(value))
Plot.Records.DiagramdiagramDiagram layout
Plot.Records.DevicedevicePlot.Records.Device()Properties of device where figure is shown