all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* octave table string conversion
@ 2018-02-12 10:36 Jan-Mark Batke
  0 siblings, 0 replies; only message in thread
From: Jan-Mark Batke @ 2018-02-12 10:36 UTC (permalink / raw)
  To: Org-Mode

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-12 10:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-12 10:36 octave table string conversion Jan-Mark Batke

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.