How can I get an outline (window) of my script?
26 views (last 30 days)
Show older comments
Alexandra Piller
on 17 Jan 2024
Answered: Steven Lord
on 17 Jan 2024
Does anybody know how to can get an outline of the script in Matlab? I organised my codes with sections (see toy example below). However, to navigate between the sections, an outline window (as in e.g. R-Studio or Visual Studio Code) would be very useful. I know that I can collabs each section to simplify navigation but I'd prefer an outline. Thanks for your help!
%% Section 1
y=1+2;
%% Section 2
x=2+3;
%% Section 3
...
1 Comment
Ganesh
on 17 Jan 2024
You can use the "details" window to navigate between the sections of a matlab code.
To enable it, you can simply Right-Click on the file and click on "Show Details".
Hope this helps!
Accepted Answer
Cris LaPierre
on 17 Jan 2024
In the Editor Tab, use the Go To dropdown menu to jump to a selected section in your script
Here's an example using the code you shared above.

1 Comment
Cris LaPierre
on 17 Jan 2024
Moved: Cris LaPierre
on 17 Jan 2024
Live Scripts allow you to insert a Table of Contents. See here: https://www.mathworks.com/help/matlab/matlab_prog/format-live-scripts.html
More Answers (1)
Steven Lord
on 17 Jan 2024
With the Live Script open in the Live Editor, open the Live Editor tab in the Toolstrip. If you click on the downward pointing triangle under "Go To" in the Navigate section you can jump to individual sections, go to a specific line, or move up or down by section. Additionally, the Bookmark item in that same Navigate section allows you to set breakpoints on specific lines and jump between them.
0 Comments
See Also
Categories
Find more on Data Type Identification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!