functionbodeSISO

Plot bode plot of the corresponding transfer function

Extends from Modelica_LinearSystems2.Internal.PartialPlotFunction (Interface of a plot function).

Information

Syntax

StateSpace.Plot.bodeSISO(ss)
   or
StateSpace.Plot.bodeSISO(
  ss,
  iu,
  iy,
  nPoints,
  autoRange,
  f_min,
  f_max,
  magnitude=true,
  phase=true,
  defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramBodePlot(),
  device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())

Description

This function plots the bode-diagram of a transfer function corresponding to the behavior of the state space system from iu'th element of the input vector u to the iy'th element of the output vector y.

Example

  Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A=[-1.0,0.0,0.0; 0.0,-2.0,0.0; 0.0,0.0,-3.0],
    B=[0.0,1.0; 1.0,1.0; -1.0,0.0],
    C=[0.0,1.0,1.0; 1.0,1.0,1.0],
    D=[1.0,0.0; 0.0,1.0])

  Integer iu=1;
  Integer iy=1;

algorithm
   Modelica_LinearSystems2.StateSpace.Plot.plotBodeSISO(ss, iu, iy)
//  gives:

Inputs

TypeNameDefaultDescription
StateSpacessState space system
Integeriu1Index of input
Integeriy1Index of output
IntegernPoints200Number of points
BooleanautoRangetrue= true, if abszissa range is automatically determined
Modelica.Units.SI.Frequencyf_min0.1Minimum frequency value, if autoRange = false
Modelica.Units.SI.Frequencyf_max10Maximum frequency value, if autoRange = false
Booleanmagnitudetrue= true, to plot magnitude
Booleanphasetrue= true, to plot phase
Realtol1e-10Tolerance of reduction procedure, default tol = 1e-10
Plot.Records.DiagramdefaultDiagram (from PartialPlotFunction)Default diagram layout
Plot.Records.Devicedevice (from PartialPlotFunction)Modelica_LinearSystems2.Utilities.Plot.Records.Device()Properties of device where figure is shown
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))
BooleanonFilefalse= true, if frequency response is stored on file as matrix [f,a,phi]
StringfileName"frequencyResponse.mat"If onFile=true, file on which the frequency response will be stored
StringmatrixNameif Hz and not dB then "fHz_a_phiDeg" elseif Hz and dB then "fHz_adB_phiDeg" elseif not Hz and dB then "f_adB_phiDeg" else "f_a_phiDeg"If onFile=true, Name of matrix on file