encapsulated function timeResponse import Modelica_LinearSystems2; import Modelica_LinearSystems2.DiscreteTransferFunction; import Modelica_LinearSystems2.Utilities.Types.TimeResponse; import Modelica_LinearSystems2.Utilities.Plot; input Modelica_LinearSystems2.DiscreteTransferFunction dtf; input Real tSpan = 0 "Simulation time span [s]"; input TimeResponse response = TimeResponse.Step "Type of time response"; input Real x0[DiscreteTransferFunction.Analysis.denominatorDegree(dtf)] = zeros(DiscreteTransferFunction.Analysis.denominatorDegree(dtf)) "Initial state vector"; extends Modelica_LinearSystems2.Internal.PartialPlotFunction(defaultDiagram = Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(heading = "Time response of dtf = " + String(dtf))); end timeResponse;