nic77
nic77

Reputation: 91

Start a remote Matlab process within Emacs matlab-mode?

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.

Upvotes: 9

Views: 665

Answers (2)

TNT
TNT

Reputation: 2511

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.

Upvotes: 3

umps
umps

Reputation: 1199

This is not exactly what you asked for but may achieve the same thing. You can use function dbstop, which allows you to set debug break points through code.

http://www.mathworks.com/help/techdoc/ref/dbstop.html#inputarg_location

Upvotes: -2

Related Questions