On 07/11/2016 06:45 AM, Andreas Weber
wrote:
close all;
m = uipanel;
ax = axes ('parent', m);
plot (ax, 1:10);
print ('out.png')
MATLAB Version: 8.6.0.267246 (R2015b) on Windows 7 creates the
file out.png but it contains Postscript.
Windows thinks it's png bitmap and can't open it. I renamed it to
out.ps and opened in Acrobad Reader, but AR has a problem with the
file as well. I tried to insert it as picture in Word, and it
didn't work either: it shows onscreen as an included image that
cannot be displayed, which is normal---but it also prints
incorrectly on a postscript printer.
I moved the file to Linux and displayed it in evince, and it
displays fine.