function r = grow(r,b,dt) %we will use a for loop to repeat our calculation over and over using the %values from the previous calculation at each step for i=2:25 r(i) = r(i-1) + b*r(i-1)*dt; end