
Controlling Input
Fo r example, t ype
mystruct.n
and press Tab, which completes the entry mystruct.name,wheremystruct
contains no other fields that begin with n.
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.MATLABdisplays
Select a property from the list. For example, type
u
and press Enter. M ATLAB 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. MATLAB automatically complete s the property
3-25
Kommentare zu diesen Handbüchern