![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/637425/image.png)
Where is the generated c/c++ code for matlab function block
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hallo,
since a matlab function block generates c/c++ exe when I run the simulink model, where can I find the generated code or exe?
Thanks for your attention.
0 commentaires
Réponses (1)
Urmila Rajpurohith
le 31 Mai 2021
Hi
When you generate code for a MATLAB function block you will notice that a folder named "slprj" folder in the current directory which contains the generated code.
If you do not want the slprj and MEX-files to be generated in your current directory, it is possible to go in the Simulink Preferences and specify a Simulation Cache Folder and a Code Generation Folder to be used instead of the local directory.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/637425/image.png)
Hope this helps!
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!