How can I Generate separate function from different simulink subsystem. I am using Matlab 2017a. Normally in simulink all the subsystem blocks will be combined after generating code. Can anyone suggest. How can I Generate separate function from diffe
Show older comments
Code generation from simulink
Accepted Answer
More Answers (1)
Birdman
on 30 Nov 2017
2 votes
Right click on your subsystem choose Block Parameters(Subsystem). Then in Main pane, check Treat as atomic unit. After, go to next pane which is called Code Generation and set function packaging as Nonreusable function. It will explicitly generate a seperate function in a separate file. You may also set the function's and file's name by yourself.
1 Comment
Nirav Ambaliya
on 30 May 2018
Thanks Birdman. Did not explore this settings before.
Categories
Find more on Schedule Model Components in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!