
6 Editing and Debugging M-Files
Tab Completion for Properties
Complete property names for figures in the current workspace using tab
completion, as in th is graphics exa m ple. Here,
f is a figur e. Type
set(f, 'pap
and press Tab. The Editor/Debugger displays
Select a property from the list. For example, type
u
and press Enter. The Editor/Debugger completes the property, including
the closing quote.
set(f, 'paperunits'
Continue adding to the statement, as in this example,
set(f, 'paperunits', 'c
and press Tab. The Edito r/D ebug ger automatically com pletes the property
set(f, 'paperUnits', 'centimeters'
because centimeters istheonlypossiblecompletion.
6-26
Commentaires sur ces manuels