Main Content
propagateWhileValid
Description
[
iteratively propagates the system from the current state q
,u
,steps
] = propagateWhileValid(mobileProp
,q0
,u0
,qTgt
,maxSteps
)q0
towards a
target state qTgt
with an initial control input u0
for a maximum number of steps maxSteps
.
At the end of each propagation step i
, the system returns these values:
q(i,:)
— Current state of the systemu(i,:)
— Control input for stepi + 1
steps(i)
— Number of steps betweeni - 1
andi
The function validates all propagations and returns system information between
q0
and the last valid state.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021b