Suppose we have the following state-space representation:
- $x(k + 1) = Ax(k) + Bu(k)$
- $y(k) = Cx(k) + Du(k)$
When calculating the state space by hand, should I use the following procedure?
- Set k = 0
- Calculate $x(1)$ using $u(0)$ and $x(0)$
- Calculate $y(0)$ using $u(0)$ and $x(0)$
- Set $k = 1$
- Calculate $x(2)$ using $u(1)$ and $x(1)$
- Calculate $y(1)$ using $u(1)$ and $x(1)$
Thanks in advance.
Yes. You can do within a for loop if you use a programming software.