x = -pi:0.1:pi;
X1 = -pi:0.1:pi;
X2 = -pi:0.1:pi;
Y1 = -pi:0.1:pi;
Y2 = -pi:0.1:pi;
plot(x, cos(x))
plotyy(X1,Y1,X2,Y2)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: