% logistic_diagram is a script which will generate the bifurcation diagram
% of the logistic function; it plots the fixed points x of the logistic
% function versus the parameter r.
% The user is prompted to enter in the values of r to test along with the
% values of N (number of iterates to get to limiting behavior) and M
% (number of iterates to plot thereafter).

R = input('Enter a vector of R values: ');
N = input('Enter the number N of iterates to allow transients to die down: ');
M = input('Enter the number M of iterates to plot: ');

A = logistic_limit(R,N,M);
plot(R,A,'r.','MarkerSize',5);
