Main Content

unpackPublishedModelDataSources

R2026b

Unpack original data sources from published model

Since R2026b

Description

unpackPublishedModelDataSources(pubmdl,unpackfolder) unpacks the original data sources from the published model specified by pubmdl and saves them to the folder specified by unpackfolder.

example

unpackPublishedModelDataSources(pubmdl,unpackfolder,Force=force) overwrites existing files that have the same filename as the original data sources.

example

Examples

collapse all

To unpack the original data sources from a published model to a specified folder, use the unpackPublishedModelDataSources function.

unpackPublishedModelDataSources("mymodel.slxp","datasources")

To unpack the original data sources and overwrite existing data sources that have the same filename, set Force to true.

unpackPublishedModelDataSources("mymodel.slxp","datasources",Force=true)

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 data sources, 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

Force overwrite of existing file, specified as a numeric or logical 1 (true) or 0 (false). When set to true, the function overwrites an existing file with the same name.

Example: unpackPublishedModelDataSources("mymodel.slxp","datasources",Force=true)

Data Types: logical

Version History

Introduced in R2026b