Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Sierpinski-pentagon/MATLAB/sierpinski-pentagon.m
Normal file
6
Task/Sierpinski-pentagon/MATLAB/sierpinski-pentagon.m
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[x, x0] = deal(exp(1i*(0.5:.4:2.1)*pi));
|
||||
for k = 1 : 4
|
||||
x = x(:) + x0 * (1 + sqrt(5)) * (3 + sqrt(5)) ^(k - 1) / 2 ^ k;
|
||||
end
|
||||
patch('Faces', reshape(1 : 5 * 5 ^ k, 5, '')', 'Vertices', [real(x(:)) imag(x(:))])
|
||||
axis image off
|
||||
Loading…
Add table
Add a link
Reference in a new issue