Installation guide
2 Desktop
Shor tcuts for MATLAB — Easily Run a Group of Statements
In this section...
“What Is a Shortcut?” on page 2-32
“Examples of Useful Shortcuts” on page 2-32
“Creating Shortcuts” on page 2-33
“Running Shortcuts” on page 2-35
“Shortcuts Toolbar” on page 2-35
“Organizing and Editing Shortcuts” on page 2-38
What Is a Shor tcut?
A MATLAB shortcut is an easy way to run a group of MATLAB statements
that you use regularly. First you create a shortcut that contains all the
statements. Then you select and run the s hortcut to execute all the statements
it contains. Create, run, and organize shortcuts from the Start > Shortcuts
menu or the desktop Shortcuts toolbar.
Differences Between Shortcuts and M-Files
A shortcut is like an M-file script, but unlike an M -file, a shortcut does not
have to be on the MATLAB search path or in the current directory when you
run it. In addition, you can run the shortcut by selecting it from the Start
button or desktop Shortcuts toolbar, which are readily accessible.
Although shortcuts run MATLAB statements, they are not M-files and are
not stored as M-files.
Examples of Useful Shortcuts
These a re some examples of useful types of shortcuts:
• If you frequently run the same group of functions, consider creating a
shortcut for them. An example of this is setting up your environment
when you start working if you do not use a
startup file, or if there are
statements you do not want to include in the
startup file. Some users
2-32