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

2016-04-01 Thread Uwe Brauer
>>> "Eric" == Eric S Fraga writes: > I don't have MATLAB on the system I'm on at the moment but trying your > (slightly modified) example with octave instead works: Aha! #+BEGIN_SRC matlab :results output syms a b A=[a,b;b,a] eig(A) #+END_SRC This worked as well! Thanks!

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

2016-04-01 Thread Eric S Fraga
Ummm, some characters lost in translation... attached is an image of the output from octave in org looks like on my system. Not sure why gnus got confused with charsets etc. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-668-g809a83

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

2016-04-01 Thread Eric S Fraga
I don't have MATLAB on the system I'm on at the moment but trying your (slightly modified) example with octave instead works: #+begin_src org ,#+BEGIN_SRC octave :results output pkg load symbolic syms a b A=[a,b;b,a] eig(A) ,#+END_SRC ,#+results: ,#+begin_example OctSym

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

2016-04-01 Thread Uwe Brauer
>>> "Eric" == Eric S Fraga writes: > On Friday, 1 Apr 2016 at 08:30, Uwe Brauer wrote: >> You mean >> >> #+BEGIN_SRC matlab >> syms a b >> A=[a,b;b,a] >> eig(A) >> #+END_SRC >> >> #+RESULTS: code > No, I think John meant: > #+BEGIN_SRC matlab :results cod

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

2016-04-01 Thread Eric S Fraga
On Friday, 1 Apr 2016 at 08:30, Uwe Brauer wrote: > You mean > > #+BEGIN_SRC matlab > syms a b > A=[a,b;b,a] > eig(A) > #+END_SRC > > #+RESULTS: code No, I think John meant: #+BEGIN_SRC matlab :results code syms a b A=[a,b;b,a] eig(A) #+END_SRC i.e. a header argument for the src block. -- :

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

2016-04-01 Thread Uwe Brauer
>>> "John" == John Kitchin writes: > 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.) You mean #+BEGIN_SRC matl

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

2016-03-31 Thread John Kitchin
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 matla

[O] problem with ob-octave (matlab)

2016-03-31 Thread Uwe Brauer
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