Debuging continuous states in a discrete simulation
17 次查看(过去 30 天)
显示 更早的评论
My simulation fails because The "VariableStepDiscrete" solver cannot be used to simulate block diagram 'Model_Name because it contains continuous states.
How do I troubleshoot? The Sample Time Display doesn't work because the failure occurs before the Sample Time Display is built.
Thanks.
0 个评论
回答(2 个)
Kaustubha Govind
2011-9-6
The error occurs because you have continuous states in your model (for example, blocks from the Continuous sub-library in the Simulink library may have continuous states - like the integrator block), not necessarily continuous sample-times. You should switch to a solver that can solve continuous states (see Solvers), like ode45.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!