URL87
URL87

Reputation: 11022

Enforce maximum line length limit on Matlab editor

How could I enforce the max line length limit in Matlab editor such that it would be split when it over the max limit?

For example , the follow too long line -

A = [1 2 3 4 5 6 7 8 9 10]

would be changed automatically to -

A = [1 2 3 4 5 6 ...
7 8 9 10]  

Edit:

You can read about the ... here .

Upvotes: 3

Views: 2514

Answers (1)

Daniel Golden
Daniel Golden

Reputation: 3952

If you want to make your lines more readable in the command window (but not the editor) so you don't have to keep scrolling to the right, you can enable command window line wrapping in the Matlab Preferences (Preferences -> Command Window -> Wrap Lines). There's no such option for the editor.

Upvotes: 1

Related Questions