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.

 Accepted Answer

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 Comments

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.
thanks for your responds ,@Piyush Kumar.

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Release

R2018b

Community Treasure Hunt

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

Start Hunting!