emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] babel, matlab export plot to png fails


From: Eric S Fraga
Subject: Re: [O] babel, matlab export plot to png fails
Date: Tue, 15 Aug 2017 18:21:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

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

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-551-g92e8c8

Attachment: signature.asc
Description: PGP signature


reply via email to

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