Discussion:
[Matlab-emacs-discuss] Emacs-Matlab Integration under Windows OS
Qi Sun
2016-05-04 03:03:34 UTC
Permalink
Dear all,

I have to switch to the Windows OS at work place while still thinking on integrating Matlab to Emacs. However, the Windows version matlab does not provide matlabshell at all. The -nodesktop option just pops up an isolated command window.

There was a solution created by Bob Morris from U of Massachusetts Boston. But it's way out of date right now I can't even recompile with the mex function. Is there anyone else facing similar situation as I do?

Thank you for any further suggestions or help!

Best,
Qi Sun
Eric Ludlam
2016-05-04 15:57:51 UTC
Permalink
Hi Qi,

I don't know of a way to make matlab-shell work on Windows. It might be possible to create something similar to Bob's old script that would work, but that is not something I'm familiar with. Sorry.

Eric

-----Original Message-----
From: Qi Sun [mailto:***@gmail.com]
Sent: Tuesday, May 03, 2016 11:04 PM
To: matlab-emacs <matlab-emacs-***@lists.sourceforge.net>
Subject: [Matlab-emacs-discuss] Emacs-Matlab Integration under Windows OS

Dear all,

I have to switch to the Windows OS at work place while still thinking on integrating Matlab to Emacs. However, the Windows version matlab does not provide matlabshell at all. The -nodesktop option just pops up an isolated command window.

There was a solution created by Bob Morris from U of Massachusetts Boston. But it's way out of date right now I can't even recompile with the mex function. Is there anyone else facing similar situation as I do?

Thank you for any further suggestions or help!

Best,
Qi Sun
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss
Thibault
2016-06-10 13:39:26 UTC
Permalink
Post by Qi Sun
Dear all,
I have to switch to the Windows OS at work place while still thinking on
integrating Matlab to Emacs.
Post by Qi Sun
However, the Windows version matlab does not provide matlabshell at all.
The -nodesktop option just pops
Post by Qi Sun
up an isolated command window.
There was a solution created by Bob Morris from U of Massachusetts Boston.
But it's way out of date right now I
Post by Qi Sun
can't even recompile with the mex function. Is there anyone else facing
similar situation as I do?
Post by Qi Sun
Thank you for any further suggestions or help!
Best,
Qi Sun
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
Hi,

I got my windows setup working by following the emacswiki instructions:
https://www.emacswiki.org/emacs/MatlabMode#toc3.

More specifically:

- Clone the github repository for matlabShell:
https://github.com/mlt/matlabShell
- Build matlabShell
- I used the intel compiler, but it should also work with the visual
studio compiler or others
- Setup the compilation environment:
- "%ICPP_COMPILER16%"\bin\compilervars.bat intel64 vs2013" (this may differ
depending on your setup)
- For Visual Studio, the setup script is (for me) "c:\Program Files
(x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
- Setup include/library folders
- set INCLUDE=%INCLUDE%;c:\MATLAB\R2007a\extern\include\ (folder containing
engine.h)
- set LIB=%LIB%;c:\MATLAB\R2007a\extern\lib\win64\microsoft\ (folder
containing libeng.lib)
- Build: "icl matlabShell.c /link libeng.lib" (cl for visual studio?)
- This builds matlabShell.exe
- Setup the emacs configuration as described in the github page

Things mostly worked afterwards, I had some issues with tab completion, for
which I had a workaround which I can provide if needed.

Loading...