External editor on Ubuntu 16.10

2 次查看(过去 30 天)
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!

采纳的回答

Faiz Gouri
Faiz Gouri 2017-2-14
编辑:Faiz Gouri 2017-2-24
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by