[Orgmode] Re: org-babel matlab example

2010-09-16 Thread Dan Davison
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-language

Re: [Orgmode] Re: org-babel matlab example

2010-09-15 Thread etimecowboy
Hi everyone, It seems that my org used the Octave program to evaluate my Matlab code block/generate figures, not Matlab itself. 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

[Orgmode] Re: org-babel matlab example

2010-09-14 Thread Achim Gratz
Achim Gratz writes: > : {%s};ans{size(ans,1)} That would have been too easy... if whitespace is in the wrong place, Octave tries to parse the code block as a multi-dimensional structure and falls onto it's own sword. Sigh. Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Bl

Re: [Orgmode] Re: org-babel matlab example

2010-09-14 Thread Darlan Cavalcante Moreira
Hello Dan, I wasn't sure if I had suggested this before or not, but now I remember that it was in a thread about python. I have only used org babel with python and octave and I don't know how this would translate to other languages, but I think it makes sense in languages that you can work with

[Orgmode] Re: org-babel matlab example

2010-09-14 Thread Achim Gratz
Dan Davison writes: > I can see that this would be particularly natural for > matlab/octave in which (aIui) function definitions require specifying > the name of the variable whose value is to be returned. I can't say I fully understand what's going on and possibly I'm off my rocker; but it seems

Re: [Orgmode] Re: org-babel matlab example

2010-09-14 Thread Dan Davison
Darlan Cavalcante Moreira writes: > Can I leave a suggestion here? > Maybe a header argument > , > | :return variableName > ` > could be interesting in org babel. This would make babel behavior more > uniform in all supported languages and avoid the necessity of adding code > "only to mak

Re: [Orgmode] Re: org-babel matlab example

2010-09-13 Thread Darlan Cavalcante Moreira
Can I leave a suggestion here? Maybe a header argument , | :return variableName ` could be interesting in org babel. This would make babel behavior more uniform in all supported languages and avoid the necessity of adding code "only to make babel work". -- Darlan At Sun, 12 Sep 2010 08:4

[Orgmode] Re: org-babel matlab example

2010-09-12 Thread etimecowboy
From: Dan Davison Subject: Re: org-babel matlab example Date: Sat, 11 Sep 2010 12:23:17 -0400 > Dan Davison writes: > >> etimecowboy writes: >> >>> Hi everybody, >>> >>> I am learning to use org-babel to evaluate in-line Matlab code block, >>> but I cannot make it works when I press the "C-c C

[Orgmode] Re: org-babel matlab example

2010-09-11 Thread Dan Davison
Dan Davison writes: > etimecowboy writes: > >> Hi everybody, >> >> I am learning to use org-babel to evaluate in-line Matlab code block, >> but I cannot make it works when I press the "C-c C-c", nor "C-c C-v >> e". > > What happens when you try C-c C-c or C-c C-v e ? There is an issue with > mat

[Orgmode] Re: org-babel matlab example

2010-09-11 Thread Dan Davison
etimecowboy writes: > Hi everybody, > > I am learning to use org-babel to evaluate in-line Matlab code block, > but I cannot make it works when I press the "C-c C-c", nor "C-c C-v > e". What happens when you try C-c C-c or C-c C-v e ? There is an issue with matlab and octave: they return the val