Manage Design Data
You can use MATLAB® variables to configure and manage signals and block parameters in a model. For more information about how models use variables, see Symbol Resolution. To create, edit, and manage variables, see Create, Edit, and Manage Workspace Variables.
You can store model variables in the MATLAB base workspace, a model workspace, or a data dictionary. To decide where to store variables for your model, see Determine Where to Store Variables and Objects for Simulink Models.
To use variables to control signal and parameter characteristics, such as data types and code generation settings, you can store data objects in a workspace or data dictionary. See Data Objects.
|Analyze relationship between variables and blocks in models|
|Save workspace variables to MATLAB script|
|Evaluate MATLAB expression in context of Simulink model|
|Modify variable values in context of Simulink model|
|Check existence of variable in context of Simulink model|
|Create new data dictionary and create |
|Open data dictionary for editing|
|Return file names and paths of open data dictionaries|
|Clear library dictionary dependency analysis|
|Update library dictionary dependencies|
|Interact with the model workspace of a model programmatically|
|Store information about workspace variables and blocks that use them|
|Store information about the relationship between variables and blocks in models|
|Specify information needed to generate code for signal, state, or parameter data|
|Configure data dictionary|
|Configure data dictionary section|
|Configure data dictionary entry|
|Store enumerated type definition in data dictionary|
Data Storage in Model Workspace
Place variables and objects that a model uses in a workspace that only the model can access.
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.
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
Use a data dictionary to store external data for a model.
Migrate data between a data dictionary and a MAT-file or MATLAB script file.
Use a data dictionary to inspect and manage changes to model data.
Store variables and objects in data dictionaries.
Create referenced dictionaries to store subsets of the data that a model or model hierarchy uses.
Compose a dictionary hierarchy based on a model reference hierarchy.
Share data objects with Simulink block library users by using a linked data dictionary.
Store enumerated type definitions and enumerated data in a data dictionary.
Use scripts and the command prompt to create and interact with data dictionaries.
Data Storage in Objects and Variables
Model data are objects and variables that you create in workspaces such as the base workspace or a data dictionary. Choose a technique to permanently store that data.
Workspace variables enable you to share information, such as parameter values and data types, between blocks and models. Use different tools and techniques to create and manipulate workspace variables.
Find out which workspace variables are used by a model or block, find blocks that use a variable, find unused variables, and rename a variable everywhere it is used by blocks. Save and load variables from a separate file.
Specify properties for parameters, signals, and states, including parameter values, outside of a block diagram by using external data objects.
You can control how blocks in a model resolve symbols to variables and objects that you create in workspaces.
Customize the way your model interacts with data (signals, parameters, and states) by creating your own class of data object.
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.