How do I save a Simulink model in a package with any referenced libraries?

I have created several libraries of Simulink blocks. I also have a model which uses blocks from several of these libraries. I would like to be able to save the model and the libraries into a single project which includes all of the files needed to run the model.

 Accepted Answer

The ability to create a package including a Simulink model and all of the libraries referenced by that model is not available in Simulink.
To work around this issue, use the SLDIAGNOSTICS command with the 'Libs' option to return a list of the libraries referenced by a model, and then manually include the appropriate libraries.

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Products

Release

R14SP1

Community Treasure Hunt

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

Start Hunting!