Main Content

unpackPublishedModelSupplementalFiles

R2026b

Unpack supplemental files from published model

Since R2026b

Description

filenames = unpackPublishedModelSupplementalFiles(pubmdl,dest) unpacks the supplemental files from the published model specified by pubmdl and saves them to the folder specified by dest.

This function lets you unpack files from the published model, such as instructions, test results, and code coverage reports. These files are not unpacked automatically during simulation or code generation.

example

Examples

collapse all

To unpack the supplemental files from a published model to a custom folder, specify a relative or absolute path.

filenames = unpackPublishedModelSupplementalFiles("mymodel.slxp","output")
filenames =

  1×1 cell array

    {'output\readme.md'}

The function unpacks the supplemental files to the specified folder and returns the filenames of the unpacked files. In this example, the published model has one supplemental file to unpack.

Input Arguments

collapse all

Published model, specified as a string or character vector.

Specify the published model filename with the .slxp extension.

Data Types: char | string

Destination folder for unpacked files, specified as a string or character vector.

Provide a relative or absolute path. If the specified path does not exist, the software attempts to create the path.

Data Types: char | string

Output Arguments

collapse all

Names of unpacked files, returned as a cell array of character vectors.

Data Types: cell

Version History

Introduced in R2026b