emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: problem with ob-octave (matlab)
Date: Thu, 31 Mar 2016 13:58:20 -0400	[thread overview]
Message-ID: <m24mbm7cn7.fsf@Johns-MacBook-Air.local> (raw)
In-Reply-To: <87wpoiy22s.fsf@mat.ucm.es>

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	other threads:[~2016-03-31 17:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-31 17:44 problem with ob-octave (matlab) Uwe Brauer
2016-03-31 17:58 ` John Kitchin [this message]
2016-04-01  8:30   ` Uwe Brauer
2016-04-01 11:09     ` Eric S Fraga
2016-04-01 12:29       ` Uwe Brauer
2016-04-01 15:49         ` Eric S Fraga
2016-04-01 16:18           ` Eric S Fraga
2016-04-01 17:06           ` Uwe Brauer

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=m24mbm7cn7.fsf@Johns-MacBook-Air.local \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=oub@mat.ucm.es \
    /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).