Matlab : Kaos Oyunu İle Fraktal Şekillerin Çizimi – Sierpinski Üçgeni


function chaos(steps)
if nargin ~= 1 % default setting
steps = 1000;
end
clf; % clear screen
axis square;
hold on; % overlay plot (all points on the same image)
a = [0;0]; % reference points
b = [50;100];
c = [100;0];
spielpkt = rand(2,1)*100; % choose starting point randomly

Continue reading