Small Satellites

Home » Fractals » Butterfly Fractal

Butterfly Fractal

clc; clear all; close all;

x  = -1:0.005:1;
sz = size(x);
a  = 0.05;
for i =1:sz(2)
    for j = 1:sz(2)
        bf(i,j) = ((x(i)^2-x(j)^2)*sin((x(i) + x(j))/a))/(x(i)^2 + x(j)^2);
    end
end
fig = figure('Position',[0 0 800 800]);
imagesc(bf);
colormap bone;axis off;
set(fig, 'color', [0 0 0]);

 

 


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 )

Facebook photo

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

Connecting to %s

Recent Post

%d bloggers like this: