Gyroscope simulation using State space
4 次查看(过去 30 天)
显示 更早的评论
I have to simulate a gyroscope using Statespace or TF but I dont get how!
I need to solve this task with the C lvl which is the SS model
0 个评论
采纳的回答
Sam Chak
2022-12-20
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:
s = tf('s');
Gp = 1/(s^2 + 2*s + 1)
step(Gp, 10)
The state-space model can be obtained by making a conversion from the transfer function.
sys = ss(Gp)
As expected, the simulation of the state-space should produce the same result as the step response of
step(sys)
3 个评论
Sam Chak
2022-12-20
Based on the "possible sensor parameters", it suggests that a 1st-order system:
s = tf('s');
H = 10/(0.2*s + 1)
From the "possible noise parameters", the hints suggest the Gaussian Noise Model.
You can check the following:
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Additional Math and Discrete 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!