Compile function handles to mex-files
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi, i need to compile my Matlab code to C/C++ but Matlab does not allow to compile a handover of a function handle to another function.
for example
h = @loss;
x = anneal(h, p);
It also does not allow to compile ODE-Solvers. Is there any solution to avoid this problem, specially for the ODE-Solver?
thanks for help Cedric
댓글 수: 0
채택된 답변
Friedrich
2011년 11월 30일
Hi,
ODE sovlers can't be translated to C/C++. All functions which are supported for code gen can be found here:
For code gen from function handles see here:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!