Alternative to ODE45(), Using Embedded Matlab Coder
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am building an ECG Generator embedded system. I have the simulations on MATLAB R2010a which needs to be translated to C/C++ for an NXP LPC2148 microcontroller. Preferably, the embedded environment should be kept autonomous (not talk to MATLAB).
I believe Embedded MATLAB Coder (EMLC) is a better tool for it than MATLAB Coder. My understanding of their difference is that EMLC uses the MATLAB Subset language and hence is more restrictive than MATLAB Coder.
The MATLAB code solves ordinary differential equations using ode45(). EMLC apparently does not support ODE45(): "The function 'ode45' is not supported by Embedded MATLAB for code generation. See the documentation for eml.extrinsic to learn how you can use this function in simulation."
Is there a workaround for this? Am I missing something? Can Real-Time Workshop help?
Thanks in Advance, Manav Kataria
1 Kommentar
Kaustubha Govind
am 1 Jun. 2011
I think you mean to compare EMLC with MATLAB Compiler. MATLAB Coder is essentially the same as EMLC (it is the new name of the product starting in R2011a).
Akzeptierte Antwort
John Elliott
am 27 Mai 2011
MATLAB Coder does not support any solvers. At this time, your only options is to write your own. Embedded Coder does not provide additional MATLAB function support over what is provided by MATLAB Coder.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Texas Instruments C2000 F28M3x Concerto Processors finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!