From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: org-babel matlab example Date: Thu, 16 Sep 2010 07:32:09 +0100 Message-ID: <87sk1a2lna.fsf@stats.ox.ac.uk> References: <4c8e1c34.14c2640a.1e85.21cc@mx.google.com> <87r5gwbaf3.fsf@stats.ox.ac.uk> <4c8fbdb6.0676970a.1c23.ffffb64f@mx.google.com> <20100916.043549.1940667233564352085.etimecowboy@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=56749 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ow8si-0001a7-Iy for emacs-orgmode@gnu.org; Thu, 16 Sep 2010 03:27:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ow8sh-0004hK-D7 for emacs-orgmode@gnu.org; Thu, 16 Sep 2010 03:27:44 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:49202) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ow8sh-0004gz-27 for emacs-orgmode@gnu.org; Thu, 16 Sep 2010 03:27:43 -0400 In-Reply-To: <20100916.043549.1940667233564352085.etimecowboy@gmail.com> (etimecowboy@googlemail.com's message of "Thu, 16 Sep 2010 04:35:49 +0100 (BST)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: etimecowboy Cc: emacs-orgmode@gnu.org etimecowboy writes: > Hi everyone, > > It seems that my org used the Octave program to evaluate my Matlab > code block/generate figures, not Matlab itself. Hmm, shouldn't do. Could you post your example? Have you activated both octave and matlab? What is the value of your org-babel-load-languages? For me C-c C-c and C-c C-v e on #+begin_src matlab 1+1 #+end_src result in /bin/bash: matlab: command not found You can confirm which language is running by using the "version" command. Here's what I get (note I have to run matlab on a remote computer because I don't have it on my laptop). --8<---------------cut here---------------start------------->8--- #+begin_src octave :results output version #+end_src #+results: : ans = 3.2.4 #+begin_src matlab :dir /ddavison@tombstone.princeton.edu:/ :results output version #+end_src #+results: #+begin_example The default version of Matlab in /usr/licensed/bin is matlab-R2009b The following versions are available in /usr/licensed/bin: matlab-R2009b matlab-R2009a matlab-R2008b Warning: No display specified. You will not be able to display graphics on the screen. < M A T L A B (R) > Copyright 1984-2009 The MathWorks, Inc. Version 7.9.0.529 (R2009b) 64-bit (sol64) August 12, 2009 To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com. >> >> ans = 7.9.0.529 (R2009b) >> >> #+end_example --8<---------------cut here---------------end--------------->8--- > I found this when comparing the exported figure by org with the figure generated by Matlab. I also found that I cannot use org-babel on an Windows PC which has Matlab installed, but not Octave. In general we would appreciate any notes on problems encountered when running Org-babel on Windows. dan > > Could someone show me how to use Matlab program to evaluate Matlab code blocks in org files in both Linux and Windows OS? Maybe it should be some settings in my .emacs file? > > Thanks again. > > ----------------------------- > > etimecowboy@gmail.com > > _.,----,._ > .:' `:. > .' `. > .' `. > : : > ` .'`':'`'`/ ' > `. \ | / ,' > \ \ | / / > `\_..,,.._/' > {`'-,_`'-} > {`'-,_`'-} > {`'-,_`'-} > `YXXXXY' > ~^^~ > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode