The population at a future time is given by the following eq

The population at a future time is given by the following equation:

P=Pi*e^rt

Where P is the population at time t, Pi is the initial population and r is the rate.

Assume a population of rabbits begins with 50 rabbits and grows at 10 percent per year. In either MATLAB or Excel, plot the population of rabbits for the next 50 years. Include the properly labelled graphs below. Now, change the axes to either a log-log plot or a semi-log plot to get a linear graph. Include those properly labelled graphs below. Skills – basic plotting, properly labelled graphs, log-log and semi-log graphs

Solution

Log log-

Pi=50
r=10
t=logspace(1,50)// x-axis
P=Pi * exp(r*t)//y-axis
loglog(t,P,\'-s\') //plot graph
grid on

Semi log

Pi=50
r=10
t=1:50// x-axis
P=Pi * exp(r*t)//y-axis
figure
semilogx(t,P)//plot graph
grid on

Normal graph-
Pi=50
r=10
t=[1:1:50]// x-axis
P=Pi * exp(r*t)//y-axis
figure
plot(t,P)//plot graph
grid on

The population at a future time is given by the following equation: P=Pi*e^rt Where P is the population at time t, Pi is the initial population and r is the rat

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site