mfile version of Simulink integrator
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Scott Hansen
el 16 de Jul. de 2013
Comentada: Jorge Gustavo Vazquez Duran
el 23 de Nov. de 2016
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 comentarios
Jorge Gustavo Vazquez Duran
el 23 de Nov. de 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!!
Respuestas (1)
Guy Rouleau
el 16 de Jul. de 2013
This should get you started:
You might also be interested to look at the code for the ode3.m function in MATLAB.
1 comentario
Ver también
Categorías
Más información sobre General Applications en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!