Borrar filtros
Borrar filtros

How to increase the accuracy of autogenerated code?

1 visualización (últimos 30 días)
Luis Ruiz
Luis Ruiz el 5 de Nov. de 2019
Editada: Luis Ruiz el 5 de Nov. de 2019
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.

Respuestas (0)

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by