Create models and set model properties
Create a model. On the MATLAB® Home tab, click Simulink and choose a model template.
Alternatively, if you already have the Library Browser open, click the New
Model button .
Open an existing model. To open recent models, on the MATLAB Home tab, click Simulink.
Alternatively, if you know the name of the model you want to open, enter the name at
the MATLAB command prompt, such as vdp
.
Tip
The first model that you open in a MATLAB session takes longer to open than subsequent models. By default, MATLAB does not start Simulink until you open the first model to reduce MATLAB startup time and avoid unnecessary system memory use.
To speed up opening the first model, you can configure MATLAB startup to also start Simulink. For more information on how to do that and also start Simulink without opening models or the Library Browser, see the start_simulink
reference page.
Toolstrip
— Access and discover Simulink capabilities To support common user workflow tasks, tabs called Simulation, Debug, Modeling, Format, and Apps provide functionality corresponding to each task.
The Apps tab provides a gallery of applications from the Simulink family of products. Apps may open a new contextual tab, a separate window, or they may be a shortcut to the configuration parameters.
When you select a model component, a contextual tab displays tools to assist you in a step. For example, when you select a Subsystem block, the Subsystem tab appears. If you select a Stateflow® chart, the State Chart tab appears. When the block or chart is no longer selected, the contextual tabs disappear.
The quick access toolbar contains frequently used options such as save, undo, and redo.
After opening a gallery, you can mark buttons as favorites. Buttons that are favorites appear at the top of the gallery for quicker access.
Commands also appear on context menus. Context menus appear when you right-click a model element or a blank area of the editor. For example, if you right-click a block,the menus display the commands relevant for working on blocks, such as clipboard and alignment operations. Some commands appear only on a context menu.
Property Inspector
— Edit parameters When you open the Property Inspector (on the Modeling tab, under Design), the Property Inspector pane opens. You can drag the Property Inspector from the default location and dock it in another location in the editor. You can collapse the Property Inspector interface by clicking the pushpin. The figure shows a block selected with the Property Inspector displayed.
The Property Inspector is useful when you set parameters and properties as you work. It can stay open and available for setting values for the current selection. Values take effect when you set them. This workflow simplifies your interaction with the interface.
You can alternatively open a dialog box for a selected model element by right-clicking and selecting an item such as Properties, or for blocks, Block Parameters. Double-clicking a block generally opens a block dialog box. (Use one of the menu commands on Subsystem and Model blocks.)
The Property Inspector and dialog boxes operate on a single selection. The main difference is that the Property Inspector updates with each selection and the dialog box shows settings for only the element you opened it from. For this reason, the dialog box is useful if:
You are moving through the model hierarchy and want to see or set element parameters or properties as you navigate the model.
You want to compare the parameters or properties of similar elements.
The settings are advanced and appear only in the dialog box.
Model Data Editor
— Edit model dataUse Model Data Editor (on the Modeling tab, click Model Data Editor), to configure multiple signals, states, and algorithmic parameters at once. You can set only certain parameters and properties such as data types, initial values, and physical units. To work with one model element at a time, open the Property Inspector. To perform batch operations, open the Model Data Editor.
For more information about setting block properties and parameters, see Signal Properties. To learn to use the Model Data Editor, see Configure Data Properties by Using the Model Data Editor.
Palette
— Access additional shortcuts along the left side of the editorThe palette along the left side of the editor provides shortcuts to commands you can use to modify the model appearance and navigate the model. For example, the palette includes a shortcut for adding annotations and other visuals, like boxed-in areas for labeling the model. It also provides a zoom button for zooming on a particular part of the model.
Hide/Show Explorer Bar
— Hide or display a bar that shows where you are in the model hierarchyThe Hide/Show Explorer Bar button in the upper left corner of the editor window displays a bar that shows where you are in the model hierarchy.
Hide/Show Model Browser
— Hide or display a hierarchical view of the modelThe Hide/Show Model Browser button displays the Model Browser pane. You can use this pane to view and navigate a hierarchical view of the model.
Show Perspectives Views
— Enable code, requirements, and interface perspectivesThe control in the lower-right corner opens additional views of the model. One such view is the interface view, which helps you to trace model interfaces. Click the control to see these views.
Model Data Access
— Retrieve model dataA badge in the lower-left corner indicates that a model has external data sources, such as a data dictionary, or that there is data in the model workspace. Click the badge, then use the menu to navigate to these data sources.
To open the Model Explorer with the Model Workspace node selected, click the Model Workspace link.
To open the Model Explorer with the External Data node for the model selected, click the External Data link.
To add or change a linked data dictionary, click the gear icon to open the External Data tab of the Model Properties dialog box.
Library Browser | Model Explorer | simulink
| start_simulink