
Finding Text in Files
• If you mistype in the incremental search field, use the backspace key to
remove the last letters and make corrections.
• A fter finding the
p,pressCtrl+W to highlight the rest of the word found,
in this case
plot, which also puts the complete word in incremental
search field.
4 To find the next occurrence of plot in the file, press Ctrl+S.Tofindthe
previous occurrence of the text, press Ctrl+R.
5 If MATLAB beeps, it either means the search is at the end or beginning of
the file, or it means that the text was not found.
• When the tex t is not found,
Failing appears in the incremental search
field. Modify the search term in the incremental search field and try
again. Use Ctrl+G to automatically remove characters back to the last
successful search. Fo r example, if
plode fails, Ctrl+G removes the de
from the search term because plo does exist in the file.
• W hen at the end or beginning of the file, press Ctrl+S or Ctrl+R again
to wrap to the beginning (or end) of the file and continue the search.
Use Ctrl+G after a finding a string to clear the search and return the
cursor to the starting point.
6 To end the incremental search, press Esc or Enter, or any other
noncharacter or number key except Tab or backspace.
The incremental search field no longer appears in the status bar. The
cursor is now located at the position where the string was last found.
If you press Ctrl+S or Ctrl+R after displaying the blank incremental search
field, the search term from your previous incremental search appears in the
field. Then the backspace key deletes the entire previous search term, rather
than just the l ast letter.
6-53
Commentaires sur ces manuels