Membangkitkan Bilangan Chaos sederhana via Matlab


Formula: x_{n+1} = r x_n (1-x_n)

clc, clear all
r=2.4:0.01:4;
k=1000;
x=zeros(k,length(r));
for p=1:1:k
    x(1,p)=0.625;
end

for i=1:1:length(r)
    for j=2:100
        x(j,i)=r(i)*x(j-1,i)*(1-x(j-1,i));
        plot(r(i),x(j,i),'Marker','.')
        hold on
    end
   
end

grafik yang akan dihasilkan sebagai berikut Screenshot from 2015-05-18 23:17:55

Advertisements

Author: ridhobustami

orang ngak jelas

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s