I'm trying for hours to simply output a certain plot in a specific resolution (320x240).
xmax = 320; ymax = 240;
xmin = 0; ymin = 0;
figure;
set(gcf,'position',[1060 860 320 240]);
axis([xmin,xmax,ymin,ymax]);
plot(someLinesAndPointsInTheRange320X240);
saveas(gca,outName,'jpg');
export_fig(outName);
Where saveas output the jpg image in an arbitrary resolution. export_fig is still showing the axes.
Adding an axis off or axis tight doesn't help either.
Has anyone an idea?
UPDATE:
The problem is solved. Just for completeness here is my current solution:
xmax = 320; ymax = 240;
xmin = 0; ymin = 0;
figure;
set(gcf,'position',[1060 860 320 240]);
subaxis(1,1,1, 'Spacing', 0.01, '