主要内容

Model Publishing

R2026b
Publish a model to lock down simulation and code generation artifacts
Since R2026b

To speed up simulation and code generation for referenced models, you can create published models. These ready-to-run versions of Simulink® models contain build artifacts that Simulink unpacks and uses as needed. Simulink skips rebuild checks for published models, reducing model compilation and build overhead.

With published models, you can:

  • Lock down branches of a model hierarchy, preventing changes and rebuilds.

  • Reuse up-to-date build artifacts from Simulink cache files instead of regenerating them during publishing.

  • Share one published model that supports multiple platforms, compilers, releases, and code generation configurations.

  • Include supplemental files, such as instructions, test results, and code coverage reports.

  • Rename published models and create multiple published models from the same source model.

  • Log signals that you configure for logging before publishing.

  • Tune parameters.

  • Unpack the original data sources, such as data dictionaries.

  • Specify an alternate value source for external parameters.

To get started with published models, see Publish Models to Speed Up Simulation and Code Generation.

Functions

expand all

publishmodelPublish Simulink model
addPublishedModelArtifactAdd artifact to published model
removePublishedModelArtifactRemove artifact from published model
mergePublishedModelsMerge published models into one file
createExternalParametersAlternateSourceCreate alternate value source for published model external parameters
slxpinfoHigh-level information about published or protected model
unpackPublishedModelDataSourcesUnpack original data sources from published model
unpackPublishedModelSupplementalFilesUnpack supplemental files from published model

Tools

Model PublisherPublish models to speed up simulation and code generation

Topics