Installation guide

Command History Window
Using Statements from the Comm and History
Window
Yo u can select entries in the Command History window and then perform the
following action s for th e selecte d en tries.
Action How to Per form the Action
Runstatementsinthe
Command Window
Double-click an entry (entries) in the Com mand History window to
execute the s tatement(s) in the entries. For example, do uble-click
edit myfile to open myfile.m in the Editor/Debugger. You can
also run the sta t ements in an entry b y right-clicking the entry
and selecting Evaluate Selection from the context menu, or by
selecting an entry and pressing Enter or Return.
Edit and run statements
in the Command Window
Select an entry or entries and then select Copy from the
context menu. Paste the selection into the Command Window.
Alternatively, drag the selection to the Command Window.
Then in the Command Window, edit the statements, and press
Enter or Return to execute them.
Copy statements to
anothe r window
Select an entry or entries and then select Copy from the
context menu. Paste the selection into an open M-file in the
Editor/Debug ger or any application. Alternatively, drag the
selectionfromtheCommandHistorywindowtoanopenM-file
or another application.
Create an M-file from
statement(s)
Select an entry or entries and then right-click and select Create
M-File from the context menu. The Editor/Debugger opens a
new M-file that contains the statements you selected from the
Command History window.
Create a shortcut from
statement(s)
Select an entry or entries and then right-click and select Create
Shortcut from the context menu. Alterna tively, drag the selection
to the Shortcuts to olbar. The Shortcut Editor opens and the
selected statements appear in the Callback field. For more
information, see “Shortcuts for MATLAB Easily Run a Grou p of
Statements” on p ag e 2-3 2.
3-51