Using Simulink | ![]() ![]() |
Entering Simulink Commands
You run Simulink and work with your model by entering commands. You can enter commands by:
Using the Simulink Menu Bar to Enter Commands
The Simulink menu bar appears near the top of each model window. The menu commands apply to the contents of that window.
Using Context-Sensitive Menus to Enter Commands
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.
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 the 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 5, and analyzing simulation results is discussed in Chapter 6, Analyzing Simulation Results..
Undoing a Command
You can cancel the effects of up to 101 consecutive operations by choosing Undo from the Edit menu. You can undo these operations:
You can reverse the effects of an Undo command by choosing Redo from the Edit menu.
![]() | Editing an Existing Model | Simulink Windows | ![]() |