functionramp
Ramp response plot
Extends from Modelica_LinearSystems2.Internal.PartialPlotFunction (Interface of a plot function).
Information
Syntax
TransferFunction.Plot.ramp(tf) or TransferFunction.Plot.ramp( tf, dt, tSpan, x0, columnLabels, defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(), device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())
Description
This function plots the ramp response of a transfer function. It is based on timeResponse.
Example
TransferFunction s = Modelica_LinearSystems2.TransferFunction.s(); Modelica_LinearSystems2.TransferFunction tf =(2*s^2 + 7*s + 13)/(s^3 + 6*s^2 + 17*s + 12); algorithm Modelica_LinearSystems2.TransferFunction.Plot.ramp(tf) // gives:
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_LinearSystems2.TransferFunction | tf | Transfer function of a system | |
| Real | dt | 0 | Sample time [s] |
| Real | tSpan | 0 | Simulation time span [s] |
| Modelica_LinearSystems2.Utilities.Types.TimeResponse | response | Modelica_LinearSystems2.Utilities.Types.TimeResponse.Ramp | type of time response |
| Real[TransferFunction.Analysis.denominatorDegree(tf)] | x0 | zeros(TransferFunction.Analysis.denominatorDegree(tf)) | 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 |