Simulink.data.dataSource.addSource
Description
Simulink.data.dataSource.addSource(
associates an external data source, such as a MAT file or a data dictionary, to a
Simulink® model or a Subsystem File specified by modelName
,nameOfExternalSource
)modelName
. This
allows the model to use the variables and data from these external data sources during
simulation, compilation, and other model operations.
You can add one data dictionary and multiple MAT files as external data sources to a model and a Subsystem File.
Examples
Input Arguments
Alternatives
Use the Model Explorer to navigate to the External Data tab. Under Additional data sources, browse for the data source and add to the model.
Version History
Introduced in R2024b