?? program_2d.m
字號:
% Chapter 2 - Nonlinear Discrete Dynamical Systems.
% Program 2d - Bifurcation diagram of the logistic map.
% Copyright Birkhauser 2004. Stephen Lynch.
% Plot a bifurcation diagram (Figure 2.15).
% Plot 30 points for each r value.
clear
itermax=100;
finalits=30;finits=itermax-(finalits-1);
for r=0:0.005:4
x=0.4;
xo=x;
for n=2:itermax
xn=r*xo*(1-xo);
x=[x xn];
xo=xn;
end
plot(r*ones(finalits),x(finits:itermax),'.','MarkerSize',1)
hold on
end
fsize=15;
set(gca,'xtick',[0:1:4],'FontSize',fsize)
set(gca,'ytick',[0,0.5,1],'FontSize',fsize)
xlabel('{\mu}','FontSize',fsize)
ylabel('\itx','FontSize',fsize)
hold off
% End of Program 2d.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -