global r
% Define initial conditions.
r=1.2;
t0 = 0;
tfinal = 15;
y0 = 0.3;
% Simulate the differential equation.
tfinal = tfinal*(1+eps);
[t,y] = ode23('logistic',[t0 tfinal],y0);
% plot the result
plot(t,y)
xlabel('Population size (N)')
ylabel('Time')
