Bifurcation Diagram
Show older comments
I want to draw the bifurcation diagram fro the model.
dx/dt=rx(1-x/K)-mxy/(ax+by+c)
dy/dt=emxy/(ax+by+c)-dy-hy^2.
parameters are all +ve.
I have tryed to plot it but fails.
clear
r=0.806; a=15; b=16;c=17;e=0.333;d=0.3;h=0.01;K=200;
x (1)=0.7;
y (1)=0.11;
t (1)=0;
for m=6:1:22
for i=1:10000
t (i+1)=t (i)+.01;
x (i+1)= x (i)+0.01*[r*x (i)*(1-x (i)/K)-m*x (i)*y (i)/(a*x \
(i)+b*y (i)+c)];
y (i+1)=y (i)+.01*[e*m*x (i)*y (i)/(a*x (i)+b*y (i)+c)-d*y (i)-h*y \
(i)^2];
end
plot (m,x, 'b')
hold on;
end
xlabel ('m')
ylabel ('x')
figure (2)
for m=6:1:22
for i=1:10000
t (i+1)=t (i)+.01;
x (i+1)= x (i)+0.01*[r*x (i)*(1-x (i)/K)-m*x (i)*y (i)/(a*x \
(i)+b*y (i)+c)];
y (i+1)=y (i)+.01*[e*m*x (i)*y (i)/(a*x (i)+b*y (i)+c)-d*y (i)-h*y \
(i)^2];
end
plot (m,y, 'b')
hold on;
end
xlabel ('m')
ylabel ('y')
Please modify or help me to modify the matlab code to draw the following bifurcation diagram (parameter VS population):
1.Transcritical bifurcation (x vs m & y vs. m) around at m= 13.666
2. Saddle-node bifurcation (x vs m & y vs. m) around at m = 20.8.
3. Hopf-bifurcation (x vs m & y vs. m) at m=14.73, (d,h) = (0.02,0.001) and others are same.
4 Comments
Mirza
on 4 Mar 2013
Plz try to read this. It has all relevant information. http://amath.colorado.edu/courses/2460/2009fall/Homeworks/bifurcation.pdf
DEEPIHA PADMANATHAN
on 10 Jan 2017
The requested page "/courses/2460/2009fall/Homeworks/bifurcation.pdf" could not be found. Page not found
MD EASHIN PATWARY
on 18 Aug 2019
Both file is not working,
Accepted Answer
More Answers (1)
Lazaros Moysis
on 12 Mar 2025
1 vote
The bifurcation diagram depicts changes in the dynamical behavior of the system, as one parameter changes. Changing a parameter of the system will change the dynamical behavior of the system. The bifurcation diagrams depicts exactly these changes. So by looking at it, we can understand for which parameter values the system is periodic with period-n, or chaotic. We do this usually by computing how many intersections the system's trajectory will have with a specific plane. If it is periodic, it will have a fixed amount of intersections, if it is chaotic it will have inumerable amount of intersections. The diagram depicts these points of intersection, so we can observe the behavior of the system, as well as how it transitions in and out of chaos as a parameter changes. The following two videos explain the theory behind the diagram, as well as the Matlab code to generate it. They will help you immensly in understanding the diagram.
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!