Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start a remote Matlab process within Emacs matlab-mode?

Tags:

emacs

ssh

matlab

I use Matlab remotely via ssh, and would like to execute regions of code from an m-file in Emacs without having to cut and paste. How do I configure Emacs to do this?

I tried to follow the solution offered here: I wrote a script that connects to the server and opens Matlab. The script works when I run it in a terminal. I edited matlab.el as explained on that page. Now, if I'm editing my m-file in Emacs and try to start Matlab, I get a message that it can't execute my remoteMatlab.sh file, and that M-shell exited abnormally with code 1.

Thanks in advance for any help.

like image 237
nic77 Avatar asked Aug 18 '12 00:08

nic77


1 Answers

You can achieve this running a shell from within emacs, starting up your ssh and matlab session in it, and renaming the shell buffer from *term* or whatever to *MATLAB*. You can then use matlab-mode on a script file and run the code.

like image 113
TNT Avatar answered Nov 07 '22 07:11

TNT