Function XXXX not supported for code generation.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
yiran zhang
le 8 Déc 2020
Réponse apportée : Ameer Hamza
le 8 Déc 2020
I didnt try to generate any C code or any code but why simulink kept informing me for example: "Function 'cell2mat' not supported for code generation."
The tool box I used included autonoumous driving toolbox with 3D scene.
0 commentaires
Réponse acceptée
Ameer Hamza
le 8 Déc 2020
By default, Simulink converts the whole model to C code. If you are using this inside a MATLAB function block, you can use coder.extrinsic to tell Simulink to don't convert it to C code. Add the following line at the beginning of your function
coder.extrinsic('cell2mat')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink 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!