Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matlab Editor - show tabs and whitespace characters

Tags:

matlab

I've been writing a lot of code in Matlab 2012a recently, and I'm wondering if there's some way to show whitespace characters (tabs, spaces, etc.) like in Notepad++ or Sublime Text.

I've been Googling around and did a search on SO, but the internet seems oddly quiet.

Thanks!

like image 326
darkpbj Avatar asked Feb 03 '14 16:02

darkpbj


People also ask

How do I change the editor in Matlab?

You can change the appearance of the Editor and Live Editor. On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger > Display, and then adjust preference options as described in the table below.

How do I open an editor in Matlab?

To launch the editor, if it is not already open, type edit or edit filename. Commands can be entered here and executed as a script. They are saved with a . m extension.


1 Answers

Although I don't think you can do this in the MATLAB editor, you can choose to use a different editor as your default. Under Preferences go to Editor/Debugger, and select "Text Editor" rather than "MATLAB Editor" (you need to supply the full path).

If this is set, then .m files etc. opened from within MATLAB should open in your preferred editor, not the MATLAB editor.

like image 67
nkjt Avatar answered Sep 28 '22 04:09

nkjt