how to generate code to specific folder

as following fig shows, i want generate code to target folder(already set this folder to path), but it failed, it seems always keep old code store path, how to resolve it.

 采纳的回答

To generate code to a specific folder, you can change "Code generation folder" in "Simulink Preferences".
You can go through this blog for more details.
Let me know if it helps.

3 个评论

hello, i just want the code generated to the folder that its model located,i have sevral model need generated,they are in different folders.
Restart computer, the code will generated to the current folder, not sure what's happened before.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

产品

版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by