% plots a Koch flake using 6 equidistant % points on the unit circle n = 6; A = [1 0]; hold on; for k = 1:n B = [cos(2*k*pi/n) sin(2*k*pi/n)]; koch(A,B,3); A = B; end