mfile version of Simulink integrator
Afficher commentaires plus anciens
I'm running a simulation model in Simulink and I want to transform it over to m-code. In my Simulink model I use an integrator and to be sure I was making my m-code correctly I took time-stepped data on both sides of the integral and compared to when I ran those points through my m-code. Sadly they did not match up.
The solver I am using in Simulink is ode3 ... does anyone know the formula for the integrator block in Simulink using an ode3 solver?
BTW, I do not have the toolboxes to do code generation from simulink.
3 commentaires
Ryan G
le 16 Juil 2013
Why do you want to convert a model to m-code?
Scott Hansen
le 17 Juil 2013
Jorge Gustavo Vazquez Duran
le 23 Nov 2016
hi man, i don´t have a solution but i have the same problem like you.
did you solve this or keeping it??
thanks.! regreat!!
Réponses (1)
Guy Rouleau
le 16 Juil 2013
0 votes
This should get you started:
You might also be interested to look at the code for the ode3.m function in MATLAB.
1 commentaire
Scott Hansen
le 17 Juil 2013
Modifié(e) : Scott Hansen
le 17 Juil 2013
Catégories
En savoir plus sur General Applications dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!