How to use this calculator
Propagate a coupled two-state digital model under a constant actuator command.
- Enter A11 (state 1/state 1), A12 (state 1/state 2), A21 (state 2/state 1), A22 (state 2/state 2), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Two state discrete trajectory explained
A numerical walkthrough
A11 (state 1/state 1) = 0; A12 (state 1/state 2) = 1; A21 (state 2/state 1) = -2; A22 (state 2/state 2) = -3; B1 (state 1/input) = 0; B2 (state 2/input) = 1; Initial state 1 = 1; Initial state 2 = 0; Held input = 0.5; Updates = 4.
- State 1: -11.5 state 1 units
- State 2: 25 state 2 units
Starting from states (1,0), apply input 0.5 for four updates of the entered coupled model.
The model behind the numbers
xₖ₊₁=A xₖ+B u; xₙ=Aⁿx₀+Σⱼ₌₀ⁿ⁻¹AʲBu. A and B must already be discrete-time coefficients.
Each update uses both components of the previous state, so the second component never uses an already updated first component. A zero update count returns the initial state.
What to enter
a— A11 (state 1/state 1)- Multiplier of previous state one per update; not a continuous rate.
b— A12 (state 1/state 2)- Previous state two contribution to new state one.
c— A21 (state 2/state 1)- Previous state one contribution to new state two.
d— A22 (state 2/state 2)- Multiplier of previous state two per discrete update.
g— B1 (state 1/input)- State one increment per held input per update.
j— B2 (state 2/input)- State two increment per held input per update.
x— Initial state 1- First state before the first update.
y— Initial state 2- Second state before the first update.
u— Held input- Same actuator command used at every update.
n— Updates- Number of applications of x[k+1]=Ax[k]+Bu. Enter a whole number.
Interpreting the result
The supplied matrix may be unstable; finite short-horizon values do not prove stability. Up to 1,000 updates are supported.
Reading the outputs
Both final state components are returned in their own units; no sampling period is inferred.
Frequently asked questions
Can A contain continuous derivatives?
No. Discretize a continuous model before using these updates.
Does an input list work here?
This page holds one input constant; it does not interpolate a control record.
Can the initial state be zero?
Yes; then the trajectory contains only forced motion.
How do I use the Two state discrete trajectory calculator?
Enter A11 (state 1/state 1), A12 (state 1/state 2), A21 (state 2/state 1), A22 (state 2/state 2), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Two state discrete trajectory?
A11 (state 1/state 1) = 0; A12 (state 1/state 2) = 1; A21 (state 2/state 1) = -2; A22 (state 2/state 2) = -3; B1 (state 1/input) = 0; B2 (state 2/input) = 1; Initial state 1 = 1; Initial state 2 = 0; Held input = 0.5; Updates = 4. State 1: -11.5 state 1 units State 2: 25 state 2 units Starting from states (1,0), apply input 0.5 for four updates of the entered coupled model.
Read our calculation methodology.