Filter löschen
Filter löschen

External editor on Ubuntu 16.10

2 Ansichten (letzte 30 Tage)
Jacopo Morosi
Jacopo Morosi am 30 Jan. 2017
Bearbeitet: Faiz Gouri am 24 Feb. 2017
I'm currently switching to linux from windows, and I'd like to use matlab in -nodesktop mode. I configured gedit to open .m files with Matlab syntax highlighting, and that is ok. But I'm not able to start gedit (or any other external editor) via the "edit" command.
How should I configure the external editor in Matlab preferences? I tried selecting "Text Editor" and setting it to /usr/bin/gedit (or /usr/bin/emacs), but It's not working.
I'm running Matlab r2016b under Ubuntu 16.10
Thanks!

Akzeptierte Antwort

Faiz Gouri
Faiz Gouri am 14 Feb. 2017
Bearbeitet: Faiz Gouri am 24 Feb. 2017
I am assuming that you would like to change the Editor/Debugger under preferences in MATLAB, so when you edit any file, it will be open in that editor. But on Linux machine, when you are setting this to gedit or any other editor, its not working.
The possible reason for this is that your LD_LIBRARY_PATH has the path to some other C/C++ shared libraries that wouldn't allow this.
As a workaround, you can set the external editor in LD_LIBRARY_PATH:
LD_LIBRARY_PATH = ; /usr/bin/gedit

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by