Question: How many elements does P have after the for loop executes? clear; clc birth = 0 . 0 2 ; death = 0 . 0

How many elements does P have after the for loop executes?
clear; clc
birth =0.02;
death =0.00;
deltat =1;
P(1)=1000
for t=1:20
P(t+1)=P(t)+ deltat *(birth - death)*P(t);
end
 How many elements does P have after the for loop executes?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!