Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB Logistic Map

  1. Mar 1, 2012 #1
    I want to make a m-file that show the behavior of the logistic map for di erent values of r using the bifurcation diagram.
    This is what i currently have, but i don't know why it is wrong.
    Can anyone help me?

    hold on
    while c < 4
    for i=1:100;
    y = -c*y^2 +c*y; %converge the iteration
    for i=1:20
    y = -c*y^2 +c*y;
    plot(c,y,'.', 'MarkerSize',1); % plot the converged points
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?