Miscellaneous Toolkit - peano_curve


Function file: x, y peano_curve (n)

Creates an iteration of the Peano space-filling curve with n points. The argument n must be of the form 3^M, where m is an integer greater than 0.

 n = 9;
 [x, y] = peano_curve (n);
 line (x, y, "linewidth", 4, "color", "red");