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!