C++ code generation of function handles
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Walter Roberson
le 29 Nov 2013
Anonymous functions are not supported, but handles to actual functions are.
1 commentaire
Paul Wintz
le 16 Août 2021
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Coder dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!