Installation guide
Controlling Input
headers =
Author Last Name, Author First Name, Author Middle Initial
MATLAB produces an error when you do not complete the string, a s shown
here:
headers = ['Author Last Name, Author First Name, ...
Author Middle Initial']
??? headers = ['Author Last Name, Author First Name, ...
Error: Missing variable or function.
Note that MATLAB ignores anything appearing after the ... on a line, and
continues processing on the nex t line. This effectively creates a comm ent out
of the text following the
... on a line. For more information, see “Commenting
Out Part of a Statement” on page 6-19.
Recalling Previous Lines
Use the arrow, tab, and control keys on your keyboard to recall, edit, and
reuse functions you typed earlier. For example, suppose you mistakenly enter
rho = (1+ sqt(5))/2
Because you misspelled sqrt,MATLABrespondswith
Undefined function or variable 'sqt'.
Instead of retyping the entire line, press the up arrow key. The p reviously
typed line is redisplayed. Use the left arrow key to move the cursor, add the
missing
r,andpressEn ter or Return to run the line. Repeated use of the
up arrow key recalls earlier lines, from the current and previous sessions.
Using the up arrow k ey, you can recall any line maintained in the Command
History window.
Similarly, specify the first few characters of a line you entered previously and
press the up arrow key to recall the pre vious line. For example, type the
letters
plo and then press the up arrow key. This displays the last line that
started with
plo, as in the most recent plot function. Press the up arrow key
3-19