.Modelica_LinearSystems2.DiscreteZerosAndPoles.Plot.impulse

Information

Syntax

DiscreteZerosAndPoles.Plot.impulse(dzp)
   or
DiscreteZerosAndPoles.Plot.impulse(
  dzp,
  tSpan,
  x0,
  columnLabels,
  defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(),
  device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())

Description

This function plots the impulse response of a discrete zeros-and-poles transfer function. It is based on timeResponse.

Example

  DiscreteZerosAndPoles q = Modelica_LinearSystems2.DiscreteZerosAndPoles.q();
  Modelica_LinearSystems2.DiscreteZerosAndPoles dzp=(q^2 - 1.5*q + 0.6)/( (q - 0.8)*(q - 0.75) )
  dzp.Ts = 0.1;

algorithm
  Modelica_LinearSystems2.DiscreteZerosAndPoles.Plot.impulse(dzp, tSpan=2)
//  gives:

See also

step, ramp, initialResponse

Interface

encapsulated function impulse
  import Modelica;
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.DiscreteZerosAndPoles;
  input DiscreteZerosAndPoles dzp "zeros-and-poles transfer function";
  input Real tSpan = 0 "Simulation time span [s]";
  extends Modelica_LinearSystems2.Internal.PartialPlotFunction(defaultDiagram = Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(heading = "Impulse response of  zp = " + String(dzp)));
end impulse;

Generated at 2024-12-03T19:25:34Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos