trsp 365
trspSyntax
[y,uint] = trsp(Sys,u,tfinal, ord,intstep)
Parameter Li st
Inputs: Sys Continuous dynamic system. The initial states are used in
the simulation.
u PDM. Input signal.
tfinal Final time in the simulation (optional). Default = max
timespecifiedinu.
Keywords: ord Scalar valued. Specifies order of interpolation for continu-
ous signals in the system. O ptions are 0 or 1. Default =
0.
intstep Scalar valued. Integration step size. If not supplied a
default will be calculated based on the system eigenvalues.
Itwill b e rounded to makeit divide into the discrete system
sample time by an integervalue of at least 2.
Outputs: y PDM. Output signal.
uint Interpolated version of u.
Description
Time domain simulation of a continuous system. This is conceptually the equivalent of:
y=Sys∗u.
This function allowsthe user more control over the parameters in the simulation.
The user can select an integrationstep (intstep) independently of the data spacing in
u. Furthermore, the spacing of ucan be non-regular and uwill beinterpolated if