How to increase the accuracy of autogenerated code?

조회 수: 1 (최근 30일)
Luis Ruiz
Luis Ruiz 2019년 11월 5일
편집: Luis Ruiz 2019년 11월 5일
I have a simulink model that propagates some dynamics based on dynamic equation of motion.
I am using simulink autocode to generate code.
When I compare the models I notice the error starts to diverge a lot as simulation time passes.
My question is: For dynamic systems when we have to take derivatives and integration at every time step, is there a setup I have to do? or there are best practices to generate code for this kind of systems?
I would like the error between the simulink model and the generated code as small as possible.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by