>>> "Eric" == Eric S Fraga <e.fr...@ucl.ac.uk> 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.


Reply via email to