t= 0:0.01:10;
p= 5 * exp(-0.3*t) +4 *cos(2*t);
plot(t, p, 'b-','LineWidth',2);
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: