
3 Running Functions — Command Window and History
againtodisplaythenextmostrecentlinethatbeganwithplo,andsoon.
Then press Enter or Return to run the line. This feature is case sensitive.
If the up arrow key moves the cursor up but d oe s not recall previous lines,
clear the accessibility preference. For more information, see “Accessibility”
on page 3-43.
Another way to view and access commands from the current and previous
MATLAB sessions is with the Command History window — see “Command
History Window” on page 3-49.
Tab Completion in the Command Window
MATLAB helps you automatically comp lete the names o f these item s as you
type them in the Command Win dow:
• Function or model on the search path or in the current directory
• Filename or directory
• Variable, including structures, in the current workspace
• Handle Graphics property for figure in the current workspace
Type the first few characters of the item name and then press the Tab key.
To use tab completion, you must have the tab completion preference for the
Command Window selected. For details, see “K eyboard Preferences” on page
3-43.
Tab completion is also available in the Editor/Debugger, but there are some
slight diffe rences in usage. See “Tab Completion in the Editor/Debugger”
on page 6-21.
These examples demonstrate how to use tab completion in the Command
Window:
• “Basic Example — Unique Completion” on page 3-21
• “M ultiple Possible C ompletions” on page 3-21
• “Tab Completion for Directories and Filenames” on page 3-24
• “ Tab Co mpletion for Structures” on page 3-2 4
3-20
Commentaires sur ces manuels