This example shows how to link a model to a data dictionary and import model design data from the base workspace into the data dictionary.
Note: Simulink® does not import simulation data such as Timeseries objects into the data dictionary.
Open the f14 model, which loads design data into the base workspace.
In the Simulink Editor, click File > Model Properties > Link to Data Dictionary.
In the Model Properties dialog box, set Defined in to Data Dictionary and click New to create a data dictionary.
Name the data dictionary, save it, and click Apply.
Click Add path, if you see the message to add the dictionary location to the MATLAB® path.
Click Yes in response to the message that explains how Simulink migrates design data stored in the base workspace.
A message appears, reporting the number of items imported from the base workspace to the data dictionary.
Click OK in the Model Properties dialog box.
A notification appears in the Simulink Editor, reporting that your model is now linked to the data dictionary.
In the Simulink Editor, click the data dictionary badge in the bottom left corner to open the dictionary.
Right-click the dictionary node and select Save Changes.