[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: [BABEL] Output with octave
From: |
Dan Davison |
Subject: |
[Orgmode] Re: [BABEL] Output with octave |
Date: |
Wed, 04 Aug 2010 00:15:18 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi,
d.tchin <address@hidden> writes:
> Hi,
>
> Dan Davison <davison <at> stats.ox.ac.uk> writes:
>
>>
>> Eric S Fraga <ucecesf <at> ucl.ac.uk> writes:
>>
>> > On Fri, 23 Jul 2010 16:59:43 +0000 (UTC), d.tchin <d.tchin <at> voila.fr>
> wrote:
[...]
>> So the current workaround is to say "when using octave, you must end
>> your block with a computation, rather than a simple statement of a
>> variable name."
>>
>> Can someone suggest a better solution?
>>
>> Dan
>>
>> p.s. Or you could do this
>>
>> #+begin_src octave :session *out* :var vec=test
>> vecb=vec;
>> ans=vecb
>> #+end_src
>>
>> #+begin_src octave :session *out* :var vec=test
>> vecb=vec;
>> ans=vecb
>> ans
>> #+end_src
>>
>
>
> Thank you for the help. I will use it as it works clearly clearly well.
>
> Following exchange you have with Juan Pechiar related to the way the output
> is displayed, I would like to submit the following examples :
>
> First test :
>
>
> #+tblname: test
> | 1 | 2 | 3 |
>
> #+source: outtest
> #+begin_src octave :session *out* :var vec=test :results value vector
> vecb=[vec];
> ans=vecb;
> #+end_src
>
>
> The output is the following :
>
>
> #+results: outtest
> | 1.00000000e+000 2.00000000e+000 3.00000000e+000 |
>
>
> It is considered as one character and each element are not clearly
> splitted in table. Certainly handled as string as Juan Pechiar.
Thanks for that. It should be fixed now. I have changed octave and
matlab so that they now write their data to file using dlmwrite rather
than save -ascii.
Dan
>
>
> Second test :
>
>
> #+tblname: test
> | 1 | 2 | 3 |
>
> #+source: outtestb
> #+begin_src octave :session *out* :var vec=test :results value vector
> vecb=[vec;vec];
> ans=vecb;
> #+end_src
>
>
> The output is the following :
>
> #+results: outtestb
> | 1.00000000e+000 | 2.00000000e+000 | 3.00000000e+000 |
> | 1.00000000e+000 | 2.00000000e+000 | 3.00000000e+000 |
>
> This time output is splitted in a table as it should be ?
>
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [BABEL] Output with octave, d . tchin, 2010/08/02
- [Orgmode] Re: [BABEL] Output with octave,
Dan Davison <=