%SINCOS Plots sine and cosine. % % Thorsten Hansen 2008-04-22 x = linspace(0, 2*pi); plot(x, sin(x)); hold on plot(x, cos(x), 'r'); title('Trigonometrische Grundfunktionen'); xlabel('x'); ylabel('y'); axis([0 2*pi -1.1 1.1]); box off; set(gca, 'FontSize', 14); legend('sin', 'cos');