MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Set Bookmarks

You can set a bookmark at any line in a file in the Editor so you can quickly navigate to
the bookmarked line. This is particularly useful in long files. For example, suppose while
working on a line, you want to look at another part of the file, and then return. Set a
bookmark at the current line, go to the other part of the file, and then use the bookmark
to return.

Bookmarks are not available in the Live Editor or in MATLAB Online.

To set a bookmark:

1 Position the cursor anywhere on the line.
2
On the Editor tab, in the Navigate section, click Go To.

(^3) Under Bookmarks, select Set/Clear
A bookmark icon appears to the left of the line.
To clear a bookmark, position the cursor anywhere on the line. Click Go To and
select Set/Clear under Bookmarks.
MATLAB does not maintain bookmarks after you close a file.
Navigate Backward and Forward in Files
To access lines in a file in the same sequence that you previously navigated or edited
them, use and.
Backward and forward navigation is not supported in the Live Editor or in MATLAB
Online.
The back and forward sequence is interrupted if you:
1
Click.
2
Click.
(^3) Edit a line or navigate to another line using the list of features described in “Navigate
to a Specific Location” on page 24-33.
24 Coding and Productivity Tips

Free download pdf