3 Creating a Model
Using Context-Sensitive Menus to Enter Commands
The Windows version of Simulink displays a context-sensitive menu when you
click the right mouse button over a model or block library window. The contents
of the menu depend on whether a block is selected. If a block is selected, the
menu displays commands that apply only to the selected block. If no block is
selected, the menu displays commands that apply to a model or library as a
whole.
Using the Simulink Toolbar to Enter Commands
Model windows in the Windows version of Simulink optionally display a
toolbar beneath the Simulink menu bar. To display the toolbar, check the
Toolbar option on the Simulink View menu.
Toolbar
The toolbar contains buttons corresponding to frequently used Simulink
commands, such as those for opening, running, and closing models. You can
run such commands by clicking on the corresponding button. For example, to
open a Simulink model, click on the button containing an open folder icon. You
can determine which command a button executes by moving the mouse pointer
over the button. A small window appears containing text that describes the
button. The window is called a tooltip. Each button on the toolbar displays a
tooltip when the mouse pointer hovers over it. You can hide the toolbar by
unchecking the Toolbar option on the Simulink View menu.
Using the MATLAB Window to Enter Commands
When you run a simulation and analyze its results, you can enter MATLAB
commands in the MATLAB command window. Running a simulation is
discussed in Chapter 4, and analyzing simulation results is discussed in
Chapter 5.
3-4