t = 0:0.01:10;
P = 5*exp(-0.3*t) + 4*cos(2*t);
plot(t,P)
title('Population of a Species Over Time')
xlabel('Time (years)')
ylabel('Population (thousands)')
grid on

Embed on website

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