clear all; close all; clc x = linspace(0,6); y = sin(x); z = cos(x); h = figure(1); plot(x,y,'r--') hold on plot(x,z,'b.-','LineWidth',3) xlabel('x') ylabel('values') legend('y','z') xlim([0 3]); ylim([-1.5 1.5]); saveas(h,'myPlot.png') saveas(h,'myPlot.eps')