t = linspace(0,2*pi);
x = cos(t);
y = sin(t);
plot(t,x,t,y,'LineWidth',1.25)
xlabel('Time [sec]')
ylabel('Amplitude [V]')
grid on
set(gca,"FontName",'David','FontSize',12)
legend('Cos','Sin','Location','best')
xlim([0 max(t)])
exportgraphics(gcf,'plot.jpeg')
exportgraphics(gcf,'plot.png')