I want to make a m-file that show the behavior of the logistic map for dierent values of r using the bifurcation diagram.(adsbygoogle = window.adsbygoogle || []).push({});

This is what i currently have, but i don't know why it is wrong.

Can anyone help me?

c=0;

hold on

while c < 4

y=0.5;

for i=1:100;

y = -c*y^2 +c*y; %converge the iteration

end

for i=1:20

y = -c*y^2 +c*y;

plot(c,y,'.', 'MarkerSize',1); % plot the converged points

end

c=c+0.002;

end

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB Logistic Map

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads for MATLAB Logistic |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

MATLAB Matlab-like software |

MATLAB Matlab data into bins |

**Physics Forums | Science Articles, Homework Help, Discussion**