program_2e.m

来自「《Dynamical Systems with Applications usi」· M 代码 · 共 27 行

M
27
字号
% Chapter 2 - Nonlinear Discrete Dynamical Systems.
% Program 2e - Bifurcation diagram of the Gaussian map.
% Copyright Birkhauser 2004. Stephen Lynch.

% Bifurcation diagram (Figure 2.21(a)).
clear;
itermax=160;alpha=8;min=itermax-9;
for beta=-1:0.001:1
    x=0;
    xo=x;
    for n=1:itermax
        xn=exp(-alpha*xo^2)+beta;
        x=[x xn];
        xo=xn;
    end
    plot(beta*ones(10),x(min:itermax),'.','MarkerSize',1)
    hold on
end

fsize=15;
set(gca,'xtick',[-1 1],'FontSize',fsize)
set(gca,'ytick',[-1 1],'FontSize',fsize)
xlabel('{\beta}','FontSize',fsize)
ylabel('\itx','FontSize',fsize)
hold off

% End of Program 2e.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?