encapsulated function initialResponse import Modelica; 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 Modelica_LinearSystems2.Utilities.Types.TimeResponse response = Modelica_LinearSystems2.Utilities.Types.TimeResponse.Initial "type of time response"; input Real y0 "Initial output (for initial condition plot)"; extends Modelica_LinearSystems2.Internal.PartialPlotFunction(defaultDiagram = Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(heading = "Initial response of dtf = " + String(dtf) + " with y0 = " + String(y0))); end initialResponse;