clear all; close all; clc x = linspace(0,10); y = sin(x); p1 = figure('rend','painters','pos',[10 10 900 600]); plot(x,y) legend('sin(x)') ylabel('sin(x)') xlabel('x') saveas(p1,'myFigure1.png') p2 = figure('rend','painters','pos',[10 10 300 200]); plot(x,y) legend('sin(x)') ylabel('sin(x)') xlabel('x') saveas(p2,'Fig2_for_screens.png') saveas(p2,'Fig2_for_documents.eps')