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 Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by