List cells in command window with hyperlinks.
Browse among cells in the editor's current script by inserting this shortcut.
Hyperlinks are inserted to take you from the command window to the corresponding line in the open editor file.
Note: due to different implementations of .getActive() among releases, this may only work in Matlab R2009b.
list_cells.m (a shortcut script)
Usage: copy and paste the entirety of this file
into a new shortcut in your main matlab window.
Name the shortcut to anything.
When you click the shortcut, the command window
will provide a list of your cell titles with
leading hyperlinks (underscored by default).
Cell markup is found by matching the first two
characters of the line with percent signs ('%%').
Leading spaces are removed.
A single trailing colon is removed if found.
Cite As
Petorr (2024). List cells in command window with hyperlinks. (https://www.mathworks.com/matlabcentral/fileexchange/43076-list-cells-in-command-window-with-hyperlinks), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.