.Modelica_LinearSystems2.TransferFunction.Plot.impulse

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

Interface

encapsulated function impulse
  import Modelica;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.TransferFunction;
  import Modelica_LinearSystems2.Utilities.Types.TimeResponse;
  import Modelica_LinearSystems2.Utilities.Plot;
  input Modelica_LinearSystems2.TransferFunction tf "transfer function";
  input Real dt = 0 "Sample time [s]";
  input Real tSpan = 0 "Simulation time span [s]";
  input Real x0[TransferFunction.Analysis.denominatorDegree(tf)] = zeros(TransferFunction.Analysis.denominatorDegree(tf)) "Initial state vector";
  extends Modelica_LinearSystems2.Internal.PartialPlotFunction(defaultDiagram = Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(heading = "Impulse response of  tf = " + String(tf)));
end impulse;

Generated at 2024-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos