C++ code generation of function handles
조회 수: 5 (최근 30일)
이전 댓글 표시
I would like to convert my matlab code to C++ code
F = @(x,u) cp_dyn_mex(x,u);
Fp = @(x,u) pour(F,x,u);
DYN = @(x,u,t) diff_xu(Fp, x, u, herr, order);
I get the following:
Caused by: Error determining type for input 'pour:fun'. Class function_handle is not supported by coder.Type.
댓글 수: 0
채택된 답변
Walter Roberson
2013년 11월 29일
Anonymous functions are not supported, but handles to actual functions are.
댓글 수: 1
Paul Wintz
2021년 8월 16일
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!