CLOUDwithDtAlgorithm
CLOUDwithDtAlgorithm
num_iterations = 8;
% Call the main function to generate and plot the deterministic fractal
deterministic_fractal(num_iterations);
function deterministic_fractal(num_iterations)
S = [0, 0; 2, 0; 1, sqrt(3); 0, 0]; % Triangle with vertices (0,0), (2,0), (1,height) and closing the loop
figure;
axis equal;
hold on;
axis off;
for i = 1:num_iterations
% Apply transformations deterministically
end
plot(S(:,1), S(:,2), 'o-', 'MarkerSize', 2, 'Color', [0.2, 0.7, 0.9]); % Light blue color
hold off;
end
function new_S = apply_transformations(S, A1, t1, A2, t2, A3, t3, A4, t4)
end