% this script draws a plot of the function x^2+cos(3x) for 0<=x<=2
x = [0 : 0.1 : 2];
plot(x, x.^2 + cos(3*x));
title('here is a simple plot');
xlabel('x');
ylabel('plot(x)');
