Main Content
getx0
Description
computes a matching initial condition x0
= getx0(sys
,q0
,dq0
)x0
for an equivalent sparse
first-order model using the initial conditions for displacement q0
and
velocity dq0
from the continuous-time sparse second-order model
sys
. You can omit the second and third input arguments when
q0
and dq0
are zero. The output, when the [sys.M;sys.G]
matrices has no zero
columns.
In general, the states of the sparss
model
is where jnz are the indices of the nonzero columns of
[sys.M;sys.G]
. The resulting number of states
nx is where nq is the number of nodes
in the mechss
object
sys
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b