From: Dan Davison <davison@stats.ox.ac.uk>
To: "d.tchin" <d.tchin@voila.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BABEL] Output with octave
Date: Wed, 04 Aug 2010 00:15:18 -0400 [thread overview]
Message-ID: <87fwyvrp2h.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <loom.20100802T105526-43@post.gmane.org> (d. tchin's message of "Mon, 2 Aug 2010 09:30:24 +0000 (UTC)")
Hi,
d.tchin <d.tchin@voila.fr> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2010-08-04 4:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-23 16:59 [BABEL] Output with octave d.tchin
2010-07-23 23:12 ` Eric S Fraga
2010-07-26 14:25 ` d.tchin
2010-08-01 18:18 ` Dan Davison
2010-08-01 20:07 ` Re: [BABEL] Output with octave + [PATCH] x2 Juan
2010-08-01 20:22 ` Re: [BABEL] Output with octave [PATCH] Juan Pechiar
2010-08-04 4:18 ` Dan Davison
2010-08-04 15:15 ` d.tchin
2010-08-01 22:19 ` [BABEL] Output with octave + [PATCH] x2 Dan Davison
2010-08-01 22:55 ` [BABEL] Octave issues Juan
2010-08-01 23:32 ` Dan Davison
2010-08-02 9:30 ` [BABEL] Output with octave d.tchin
2010-08-04 4:15 ` Dan Davison [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fwyvrp2h.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=d.tchin@voila.fr \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).