clc
clear

f=@(x)10*exp(-2*x);
x= (0,2,100);
y=f(x);

plot(x,y)
xlabel('x')
ylabel('f(x)')

Embed on website

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