functionimpulse
Impulse response plot
Extends from Modelica_LinearSystems2.Internal.PartialPlotFunction (Interface of a plot function).
Information
Syntax
ZerosAndPoles.Plot.impulse(zp) or ZerosAndPoles.Plot.impulse( zp, 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 zeros-and-poles transfer function. It is based on timeResponse.
Example
ZerosAndPoles p = Modelica_LinearSystems2.ZerosAndPoles.p(); Modelica_LinearSystems2.ZerosAndPoles zp =(p + 1)/(p^2 + 5*p + 12); algorithm Modelica_LinearSystems2.ZerosAndPoles.Plot.impulse(zp, dt=0.02, tSpan=3) // gives:
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_LinearSystems2.ZerosAndPoles | zp | zeros-and-poles transfer function | |
| Real | dt | 0 | Sample time [s] |
| Real | tSpan | 0 | Simulation time span [s] |
| Real[ZerosAndPoles.Analysis.denominatorDegree(zp)] | x0 | zeros(ZerosAndPoles.Analysis.denominatorDegree(zp)) | Initial state vector |
| Plot.Records.Diagram | defaultDiagram (from PartialPlotFunction) | Default diagram layout | |
| Plot.Records.Device | device (from PartialPlotFunction) | Modelica_LinearSystems2.Utilities.Plot.Records.Device() | Properties of device where figure is shown |