% % Plot template % x = 0:.25:10; y1 = sin(x); y2 = sqrt(x) .* exp(-x) plot(x, y1, '.-') % connected symbols hold on plot(x, y2, '--') % dashed line grid on xlabel('x') ylabel('y') title('A graph') legend('experiment', 'theory', 'location', 'best') hold off