pub fn step_for_continuous_ss(
model: &ContinuousStateSpaceModel,
sampling_dt: f64,
duration: f64,
) -> (DMatrix<f64>, DMatrix<f64>, DMatrix<f64>)Expand description
Generates the step response of a continuous state-space model for a given duration by converting it to a discrete model using the forward Euler method.
§Arguments
model- A reference to aContinuousStateSpaceModelobject.sampling_dt- The sampling time for the discrete model.duration- The duration for which the step response is to be generated.
§Returns
A tuple containing:
response- A matrix containing the output sequence of the step response.input- A matrix containing the input sequence (step input).states- A matrix containing the state sequence during the step response.