[Orgmode] Re: org-babel matlab example

2010-09-16 Thread Dan Davison
etimecowboy etimecow...@googlemail.com 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

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

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

2010-09-14 Thread Dan Davison
Darlan Cavalcante Moreira darc...@gmail.com 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

[Orgmode] Re: org-babel matlab example

2010-09-14 Thread Achim Gratz
Dan Davison davi...@stats.ox.ac.uk 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

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
Achim Gratz strom...@nexgo.de 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

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

[Orgmode] Re: org-babel matlab example

2010-09-12 Thread etimecowboy
From: Dan Davison davi...@stats.ox.ac.uk Subject: Re: org-babel matlab example Date: Sat, 11 Sep 2010 12:23:17 -0400 Dan Davison davi...@stats.ox.ac.uk writes: etimecowboy etimecow...@googlemail.com writes: Hi everybody, I am learning to use org-babel to evaluate in-line Matlab code

[Orgmode] Re: org-babel matlab example

2010-09-11 Thread Dan Davison
etimecowboy etimecow...@googlemail.com 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:

[Orgmode] Re: org-babel matlab example

2010-09-11 Thread Dan Davison
Dan Davison davi...@stats.ox.ac.uk writes: etimecowboy etimecow...@googlemail.com 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