From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: babel, matlab export plot to png fails Date: Wed, 16 Aug 2017 12:33:20 +0000 Message-ID: <878tijd75b.fsf@mat.ucm.es> References: <35e27070f72a4368bdf61b972ddef4c6@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87a830oifx.fsf@t3610> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhxXf-0004CC-Uh for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 08:35:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhxXc-0003y0-K0 for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 08:35:23 -0400 Received: from [195.159.176.226] (port=35149 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhxXc-0003tI-Dw for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 08:35:20 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dhxXO-0001ZS-9q for emacs-orgmode@gnu.org; Wed, 16 Aug 2017 14:35:06 +0200 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: emacs-orgmode@gnu.org >>> "Eric" == Eric S Fraga writes: > On Sunday, 13 Aug 2017 at 08:33, Uwe Brauer wrote: >> I would like to execute some matlab code in org file (using GNU emacs 26 >> and the git version of org mode) and save the result of the plot command >> in a png file, so I tried > [...] >> #+begin_src matlab :results output latex :exports results :file testplot.png >> t=[0:0.1:1]; >> y=sin(t); >> plot(t,y) >> print -dpng testplot.png >> #+end_src > Maybe try with ":results file" instead of "output latex"? Works for > octave (I don't have MATLAB). That is: > #+begin_src matlab :results file :exports results :file testplot.png > ... > #+end_src In that case testplot.png contains zero bytes. BTW Eric, thanks for your reply, but a lot of your posts seem to be outside the thread, at least when I read them via gnus or thunderbird. Not sure who is the culprit..... It makes reading it a bit difficult.