Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
matlab-shell and Emacs

Subject: matlab-shell and Emacs

From: Michael Robbins

Date: 15 Nov, 1999 15:25:10

Message: 1 of 2

When I try to run matlab shell through Emacs I get the following error:

matlab-shell is an interactive Lisp function in
`c:/emacs20.3.1/lisp/matlab'.
(matlab-shell)

Create a buffer with Matlab running as a subprocess.

Matlab shell cannot work on the MS Windows platform because Matlab is
not
a console application.

--
Michael Robbins, CFA
Director, Proprietary Trading
Debt Capital Markets
Canadian Imperial Bank of Commerce


Sent via Deja.com http://www.deja.com/
Before you buy.

Subject: matlab-shell and Emacs

From: Herbert Ramoser

Date: 16 Nov, 1999 09:18:01

Message: 2 of 2

> When I try to run matlab shell through Emacs I get the following error:
>
> matlab-shell is an interactive Lisp function in
> `c:/emacs20.3.1/lisp/matlab'.
> (matlab-shell)
>
> Create a buffer with Matlab running as a subprocess.
>
> Matlab shell cannot work on the MS Windows platform because Matlab is
> not
> a console application.

This error is correct - matlab-shell requires the matlab program to use
stdin and stdout for communication.

On the Mathworks ftp server you can find a program called matlabshell
which provides a console interface to Matlab in a Microsoft environment.
With little fiddling in your .emacs you can use the matlab-shell command
in NTEmacs.

Here are my settings:
(setq matlab-shell-command "PATH/TO/matlabshell.bat")
(setq matlab-shell-command-switches "")
(setq matlab-shell-echoes nil)

matlabshell.bat looks like this:
set PATH=\PATH\TO\MATLAB
d:
cd %HOME%
\PATH\TO\matlabshell.exe 500 20000


Hope this helps,

  Herbert

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us