필터 지우기
필터 지우기

Alternative to ODE45(), Using Embedded Matlab Coder

조회 수: 3 (최근 30일)
Manav
Manav 2011년 5월 27일
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
Kaustubha Govind
Kaustubha Govind 2011년 6월 1일
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).

댓글을 달려면 로그인하십시오.

채택된 답변

John Elliott
John Elliott 2011년 5월 27일
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.
  댓글 수: 1
Manav
Manav 2011년 5월 28일
Thanks for the quick responses John! Any good suggestions for a c library I could use?
Manav

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by