Where is the generated c/c++ code for matlab function block

조회 수: 1 (최근 30일)
Jiangfeng Liu
Jiangfeng Liu 2021년 5월 29일
댓글: Jiangfeng Liu 2021년 6월 3일
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.

답변 (1개)

Urmila Rajpurohith
Urmila Rajpurohith 2021년 5월 31일
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.
Hope this helps!
  댓글 수: 1
Jiangfeng Liu
Jiangfeng Liu 2021년 6월 3일
Hi, thanks for you reply. But I have checked the folder slprj and there is no c/c++ source files or MEX-file.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by