You didn't provide the transfer function of the gyroscope with sensor dynamics.
In short, you need to provide the mathematical part for the modeling problem, so that we can show you the technical part of MATLAB. Anyhow, here is an example of simulation:
If a system is given by
, where
,
,
then the transfer function probably looks like this: Gp = 1/(s^2 + 2*s + 1)
Gp =
1
-------------
s^2 + 2 s + 1
Continuous-time transfer function.
The state-space model can be obtained by making a conversion from the transfer function.
sys = ss(Gp)
sys =
A =
x1 x2
x1 -2 -1
x2 1 0
B =
u1
x1 1
x2 0
C =
x1 x2
y1 0 1
D =
u1
y1 0
Continuous-time state-space model.
As expected, the simulation of the state-space should produce the same result as the step response of 