回复: Logistic方程作图的问题
x=0.1; % initial value
for lamda=1:0.01:4
for m=1:20
y=lamda*x*(1-x);
x=y;
if m>10
plot(lamda,y);
hold on;
end
end
end
Ps: you can change the initial value to see whether there are some differences. First you will see period doubling bifurcation, then a special period three orbit, and the system
becomes chaos eventually.
__________________
坚持就是胜利,努力就有奇迹。
|