Is it possible to add line numbers to MATLAB Editor/Debugger?

23 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 6 Nov 2009
This issue has been addressed in MATLAB 6.0 (R12) and above. The line numbers are displayed on the left of each line, and it is possible to print your code with the line numbers as of MATLAB 6.1 (R12.1).
In MATLAB 7.9 (R2009b), to enable printing with line numbers, navigate to File -> Page Setup. Under the "layout" tab select "Print with line numbers".

More Answers (0)

Categories

Find more on Scripts in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!