[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] babel, matlab export plot to png fails
From: |
Uwe Brauer |
Subject: |
[O] babel, matlab export plot to png fails |
Date: |
Sun, 13 Aug 2017 08:33:34 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Hi
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 :session :exports both :file testplot.png
t=[0:0.1:1];
y=sin(t);
plot(t,y)
print -dpng testplot.png
#+end_src
And also
#+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
But the resulting png files are corrupt. I presume also the matlab
commands are included in the png file which is not correct. But I don't
know who to achieve that just the last command is saved in a png file.
I googled without success. Does somebody know the correct syntax?
Thanks
Uwe Brauer
- [O] babel, matlab export plot to png fails,
Uwe Brauer <=
- Re: [O] babel, matlab export plot to png fails, John Kitchin, 2017/08/13
- Re: [O] babel, matlab export plot to png fails, Neil Jerram, 2017/08/15
- Re: [O] babel, matlab export plot to png fails, Uwe Brauer, 2017/08/16
- Re: [O] babel, matlab export plot to png fails, Berry, Charles, 2017/08/16
- Re: [O] babel, matlab export plot to png fails, Eric S Fraga, 2017/08/16
- Re: [O] babel, matlab export plot to png fails, Berry, Charles, 2017/08/16
- Re: [O] babel, matlab export plot to png fails, Eric S Fraga, 2017/08/16
- Re: [O] babel, matlab export plot to png fails, Berry, Charles, 2017/08/16
- Re: [O] babel, matlab export plot to png fails, Uwe Brauer, 2017/08/16