From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan-Mark Batke Subject: octave table string conversion Date: Mon, 12 Feb 2018 11:36:59 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c18f2846bd94505650176cb" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elBUA-0008Tk-KD for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 05:37:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elBU9-00040J-5B for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 05:37:22 -0500 Received: from mail-ua0-x234.google.com ([2607:f8b0:400c:c08::234]:35471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elBU9-0003zc-0P for emacs-orgmode@gnu.org; Mon, 12 Feb 2018 05:37:21 -0500 Received: by mail-ua0-x234.google.com with SMTP id n1so9142961uaa.2 for ; Mon, 12 Feb 2018 02:37:20 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-Mode --94eb2c18f2846bd94505650176cb Content-Type: text/plain; charset="UTF-8" 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 --94eb2c18f2846bd94505650176cb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,
is there any way to p= revent org from converting table elements to a string when used as a variab= le 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 va= lues inside an octave script, say

#+BEGIN_SRC octave :exports both := results output :var PC =3D P_C
=C2=A0=C2=A0=C2=A0=C2=A0 P_C =3D PC;=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0

PC is= a matrix of strings, namely
PC=3D[['2/3','1/3'];= ['1/4','3/4']];

evaluating PC ins= ide 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 lit= erally imported to PC (without quotes).
Otherwise there migh= t be a clever way to evaluate the expressions before importing them using e= lisp?
Best
Jan-Mark

<= br>
--94eb2c18f2846bd94505650176cb--