Main Content

Manage Design Data

Choose how to store, partition, and share model design data for small projects and complex model hierarchies

Design data is the set of variables and data objects that you use to specify block parameters and signal characteristics, such as data type and dimension, in a Simulink® model. Storage options for design data include the MATLAB® base workspace, a model workspace, or a data dictionary. Choosing a location for your design data can depend on:

  • Modeling goals

  • Model architecture

  • Types of data

To learn about types of model data and how to manage data storage for your project, see Determine Where to Store Variables and Objects for Simulink Models.

To learn how to manage data programmatically, see Manage Design Data for Simulink Models Programmatically.


expand all object for a data source (Since R2024a)
clearRemove specified variables from connected data source (Since R2024a)
clearAllRemove variables from connected data source (Since R2024a)
createCreate object in connected data source (Since R2024a)
discardChangesDiscard data in memory and reload from connected data source (Since R2024a)
existDetermine whether variable exists in connected data source (Since R2024a)
getRead variables from connected data source (Since R2024a)
getMetadataGet metadata for variable or connected data source (Since R2024a)
hasUnsavedChangesDetermine whether connected data source has unsaved data in memory (Since R2024a)
isConsistentDetermine whether variable definitions visible to connected data source are consistent (Since R2024a)
renameRename specified variables in connected data source (Since R2024a)
reportInconsistencyReport inconsistent variable definitions (Since R2024a)
saveChangesSave data in memory for connected data source to disk (Since R2024a)
setAssign variable in connected data source (Since R2024a)
showOpen and show contents of connected data source in Model Explorer (Since R2024a)
whoList variables that are in connected data source (Since R2024a) new data dictionary and create object data dictionary for editing file names and paths of open data dictionaries
Simulink.dictionary.archdata.createCreate Simulink data dictionary and Architectural Data object (Since R2023b)
Simulink.dictionary.archdata.openCreate Architectural Data object representing architectural data of existing Simulink data dictionary (Since R2023b)
Simulink.LibraryDictionary.clearClear library dictionary dependency analysis (Since R2021a)
Simulink.LibraryDictionary.refreshUpdate library dictionary dependencies (Since R2021a)
Simulink.LibraryDictionary.resetLibraryLinksClear cached information on library dictionary links (Since R2022a) registered file adapters (Since R2022b) custom file adapter (Since R2022b) custom file adapter (Since R2022b)
Simulink.findVarsAnalyze relationship between variables and blocks in models workspace variables to MATLAB script MATLAB expression in context of Simulink model variable values in context of Simulink model existence of variable in context of Simulink model


expand all source connection (Since R2024a)
Simulink.ModelWorkspaceInteract with the model workspace of a model programmatically data dictionary data dictionary section data dictionary entry enumerated type definition in data dictionary
Simulink.dictionary.ArchitecturalDataEdit architectural data in a Simulink data dictionary programmatically (Since R2023b)
Simulink.dictionary.archdata.DataInterfaceEdit data interface in Simulink data dictionary programmatically (Since R2023b)
Simulink.dictionary.archdata.DataElementData element of data interface (Since R2023b)
Simulink.dictionary.archdata.PhysicalInterfacePhysical interface (Since R2023b)
Simulink.dictionary.archdata.PhysicalElementPhysical element of a physical interface (Since R2023b)
Simulink.dictionary.archdata.FunctionElementFunction in client-server interface (Since R2023b)
Simulink.dictionary.archdata.FunctionArgumentFunction argument in function element of client-server interface (Since R2023b)
Simulink.dictionary.archdata.ServiceInterfaceService interface (Since R2023b)
Simulink.dictionary.archdata.StructTypeStructure data type (Since R2023b)
Simulink.dictionary.archdata.StructElementStruct element of a struct type (Since R2023b) class used to define file adapter for reading custom file formats (Since R2022b) data for external data source (Since R2022b) custom external file adapter (Since R2022b)
Simulink.WorkspaceVarStore information about workspace variables and blocks that use them
Simulink.VariableUsageStore information about the relationship between variables and blocks in models
Simulink.CoderInfoSpecify information needed to generate code for signal, state, or parameter data


Data Storage for Simulink Models

Data Storage in Model Workspace

  • Model Workspaces
    Place variables and objects that a model uses in a workspace that only the model can access.
  • Change Model Workspace Data
    When you store data in a model workspace, you choose a data source, such as the model file or an external MAT-file. To modify the variables at the source, you use a different procedure depending on the type of source that you selected.
  • Specify Source for Data in Model Workspace
    Store variables and objects that a model uses in the model file or in a separate file. Optionally, store the variables and objects as code that you can modify.

Data Storage in Dictionary

Data Storage in External Files

Data Storage in Objects and Variables

  • Data Objects
    Specify properties for parameters, signals, and states, including parameter values, outside of a block diagram by using external data objects.
  • Symbol Resolution
    You can control how blocks in a model resolve symbols to variables and objects that you create in workspaces.
  • Define Data Classes
    Customize the way your model interacts with data (signals, parameters, and states) by creating your own class of data object.
  • Upgrade Level-1 Data Classes
    Simulink no longer supports level-1 data classes. You must upgrade data classes that you created using the level-1 data class infrastructure, which was removed in a previous release.

Related Information