From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: problem with ob-octave (matlab) Date: Thu, 31 Mar 2016 13:58:20 -0400 Message-ID: References: <87wpoiy22s.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1algrT-0007zU-Q2 for emacs-orgmode@gnu.org; Thu, 31 Mar 2016 13:58:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1algrQ-0007n1-HR for emacs-orgmode@gnu.org; Thu, 31 Mar 2016 13:58:27 -0400 Received: from mail-qg0-x22e.google.com ([2607:f8b0:400d:c04::22e]:35243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1algrQ-0007mo-D9 for emacs-orgmode@gnu.org; Thu, 31 Mar 2016 13:58:24 -0400 Received: by mail-qg0-x22e.google.com with SMTP id y89so72141079qge.2 for ; Thu, 31 Mar 2016 10:58:23 -0700 (PDT) In-reply-to: <87wpoiy22s.fsf@mat.ucm.es> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Uwe Brauer Cc: emacs-orgmode@gnu.org 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