MatlabEmacs - Ando Lab Wiki

Using Matlab with Emacs

Introduction

Matlab IDE is OK but not great. I feel much better working with Emacs than the Matlab's GUI oriented IDE. I want to control everything by keyboard shortcuts. This page is a memo on using Matlab from Emacs. Actually, I don't like Matlab in the first place. However, there are some occasions where I'm forced to use Matlab. Here is what I do in those cases to relieve the pain of using Matlab.

Target

I'm using Linux, so this memo assumes that you also use Linux. Probably it is probably not true for most people. But there are Emacs for Windows and Mac. If you are interested in the tricks in this page, please try them on your own platform. At least the .emacs tweaks described here should be platform independent.

matlab.el

matlab.el is the central engine for using Matlab from Emacs. The project home page is http://matlab-emacs.sourceforge.net/.

In order to download the latest version of matlab-emacs, you have to use CVS, which is not most user friendly. An instruction on how to download the source via CVS is written here. Just copy and paste the cvs command lines shown in the page.

To compile matlab-emacs, you need CEDET. A link to the source tarball is at the bottom of the CEDET homepage. Download and extract it. Then type make to byte-compile CEDET files. You can put the cedet-1.0 directory in anywhere you want. I put it in ~/share/site-lisp/cedet-1.0.

After CEDET is installed.

http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2013-07-09 (火) 14:50:24 (1596d)