.Modelica_LinearSystems2.ZerosAndPoles.Plot.step

Information

Syntax

ZerosAndPoles.Plot.step(zp)
   or
ZerosAndPoles.Plot.step(
  zp,
  dt,
  tSpan,
  x0,
  columnLabels,
  defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(),
  device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())

Description

This function plots the step 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.step(zp, dt=0.02, tSpan=3)
//  gives:

See also

impulse, ramp, initialResponse

Interface

encapsulated function step
  import Modelica_LinearSystems2;
  import Modelica_LinearSystems2.ZerosAndPoles;
  import Modelica_LinearSystems2.Utilities.Types.TimeResponse;
  input ZerosAndPoles zp;
  input Real dt = 0 "Sample time [s]";
  input Real tSpan = 0 "Simulation time span [s]";
  input TimeResponse response = TimeResponse.Step "type of time response";
  input Real x0[ZerosAndPoles.Analysis.denominatorDegree(zp)] = zeros(ZerosAndPoles.Analysis.denominatorDegree(zp)) "Initial state vector";
  extends Modelica_LinearSystems2.Internal.PartialPlotFunction(defaultDiagram = Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(heading = "Step response of  zp = " + String(zp)));
end step;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos