Code covered by the BSD License  

Highlights from
Dynamical Systems with Applications using MATLAB

image thumbnail

Dynamical Systems with Applications using MATLAB

by

 

13 Sep 2002 (Updated )

Companion Software.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

Program_2e.m
% Chapter 2 - Nonlinear Discrete Dynamical Systems.
% Program 2e - Bifurcation Diagram of the Gaussian Map.
% Copyright Birkhauser 2013. 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:0.5:1],'FontSize',fsize)
set(gca,'ytick',[-1:0.5:1],'FontSize',fsize)
xlabel('{\beta}','FontSize',fsize)
ylabel('\itx','FontSize',fsize)
hold off

% End of Program 2e.

Contact us