mfile version of Simulink integrator
Ältere Kommentare anzeigen
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 Kommentare
Ryan G
am 16 Jul. 2013
Why do you want to convert a model to m-code?
Scott Hansen
am 17 Jul. 2013
Jorge Gustavo Vazquez Duran
am 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!!
Antworten (1)
Guy Rouleau
am 16 Jul. 2013
0 Stimmen
This should get you started:
You might also be interested to look at the code for the ode3.m function in MATLAB.
1 Kommentar
Scott Hansen
am 17 Jul. 2013
Bearbeitet: Scott Hansen
am 17 Jul. 2013
Kategorien
Mehr zu General Applications finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!