- /
-
Sierpinski Carpet
on 5 Oct 2021
- 5
- 107
- 0
- 0
- 134
A = true;
for i=1:5
B=num2cell(A);
B(A)={[1 1 1;1 0 1;1 1 1]>0};
B(~A)={false(3,3)};
A=cell2mat(B);
end
imagesc(A); axis equal off; colormap(bone);