x = 0:1:360; y1 = sind(x); y2 = cosd(x); plot(x, y1, x, y2); grid on; legend('sin(x)', 'cos(x)'); xlabel('Angle (degrees)'); ylabel('Amplitude');
To embed this project on your website, copy the following code and paste it into your website's HTML: