functionimpulse

Impulse response plot

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

Information

Syntax

TransferFunction.Plot.impulse(tf)
   or
TransferFunction.Plot.impulse(
  tf,
  dt,
  tSpan,
  x0,
  columnLabels,
  defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(),
  device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())

Description

This function plots the impulse response of a transfer function. It is based on timeResponse.

Example

  TransferFunction s = Modelica_LinearSystems2.TransferFunction.s();
  Modelica_LinearSystems2.TransferFunction tf =(s + 1)/(s^2 + 5*s + 12);

algorithm
  Modelica_LinearSystems2.TransferFunction.Plot.impulse(tf, dt=0.02, tSpan=3)
//  gives:

See also

step, ramp, initialResponse

Inputs

TypeNameDefaultDescription
Modelica_LinearSystems2.TransferFunctiontftransfer function
Realdt0Sample time [s]
RealtSpan0Simulation time span [s]
Real[TransferFunction.Analysis.denominatorDegree(tf)]x0zeros(TransferFunction.Analysis.denominatorDegree(tf))Initial state vector
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