When creating a new shortcut, provide values for the fields listed below. When editing an existing shortcut, make changes to these values. When adding a Help browser favorite, you can accept all the defaults and just click Save, or you can make changes.
For related information, use the See Also links at the end of this topic.
Label
Provide a name for the shortcut.
Callback
Enter the MATLAB statements that execute when you run the shortcut. You can type them in, copy and paste them, or drag them from a desktop tool. Edit the statements as needed.
For Help browser favorites, do not change the default entry.
If you copy the statements from the Command Window, prompts (>>
) appear in the shortcut, but MATLAB removes the prompts when you save the shortcut.
The field uses the key bindings preferences you specified for the Editor/Debugger and the desktop code font preferences you specified.
Category
Select or type a category to which the shortcut belongs. Categories are used like directories to help you locate and organize shortcuts. Create a new category by typing its name in the category field. When you run a shortcut from the Start menu, you access it from its category.
In addition to the categories you create, you can use one of these MATLAB options:
Help Browser Favorites
--Contains shortcuts to view the pages you designated as favorites in the Help browser. Entries in this category appear in the Help browser Favorites menu. For more information, see Help Browser Favorites in the MATLAB documentation.
Toolbar Shortcuts
--Select this category to show the shortcut on the MATLAB desktop Shortcuts toolbar so you can run it from there.
Shortcuts
--This is the top level category, used by default.
Icon
Select an icon to associate with the shortcut. You can either
Standard

, MATLAB
Simulink
Help
$matlabroot/toolbox/matlab/icons
. The image is displayed as a 16-by-16 pixel icon with the shortcut. The icon you select appears in the icon drop-down list so you can also use it with other shortcuts.
See Also