emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] problem with ob-octave (matlab)


From: John Kitchin
Subject: Re: [O] problem with ob-octave (matlab)
Date: Thu, 31 Mar 2016 13:58:20 -0400
User-agent: mu4e 0.9.16; emacs 25.1.50.1

sometimes setting :results to raw or code can help.

I occasionally have trouble when the results get interpreted as cons
cells, and maybe some other things too (in other languages but i think
it a general problem.)

Uwe Brauer writes:

> Hello
>
> I can successfully execute
>
>
> #+BEGIN_SRC matlab
> A=[3 4; 5 6]
> b=[5;6]
> A\b
> #+END_SRC
>
> #+RESULTS:
> |  -3 |
> | 3.5 |
>
> However
> #+BEGIN_SRC matlab
> syms a b
> A=[a,b;b,a]
> eig(A)
> #+END_SRC
>
>
> Does not work
>
> I obtain
>
> executing Matlab code block...
> Wrote /tmp/babel-2948rpV/ob-input-2948ACJ
> Error reading results: (beginning-of-buffer)
> Code block produced no output.
>
>
> However the code can be executed in matlab giving
>
>
> ans =
>
>  a + b
>  a - b
>
>
> Any comments?
>
> Thanks
>
> Uwe Brauer


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]