From: Jan-Mark Batke <jan.mark.batke@googlemail.com>
To: Org-Mode <emacs-orgmode@gnu.org>
Subject: octave table string conversion
Date: Mon, 12 Feb 2018 11:36:59 +0100 [thread overview]
Message-ID: <CAHLa=T_P2iOhLL36Fk8F7C8N6r+z54o1A99Kmb2y3fYs4Ga-fg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 700 bytes --]
Hi all,
is there any way to prevent org from converting table elements to a string
when used as a variable in an octave source block?
Example: I have
#+name: P_C
| 2/3 | 1/3 |
| 1/4 | 3/4 |
and I want to use that values inside an octave script, say
#+BEGIN_SRC octave :exports both :results output :var PC = P_C
P_C = PC;
PC is a matrix of strings, namely
PC=[['2/3','1/3']; ['1/4','3/4']];
evaluating PC inside octave does not help since the column field
information is lost 2/3 and 1/3 are concatenated.
so I want 2/3 and so on literally imported to PC (without quotes).
Otherwise there might be a clever way to evaluate the expressions before
importing them using elisp?
Best
Jan-Mark
[-- Attachment #2: Type: text/html, Size: 1013 bytes --]
reply other threads:[~2018-02-12 10:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAHLa=T_P2iOhLL36Fk8F7C8N6r+z54o1A99Kmb2y3fYs4Ga-fg@mail.gmail.com' \
--to=jan.mark.batke@googlemail.com \
--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).