f = @(x) x.^2; x = -10:0.1:10; y = f(x); plot(x, y); xlabel('x'; ylabel('f(x)'); title('Plot of f(x) = x^2');
To embed this project on your website, copy the following code and paste it into your website's HTML: