Miscellaneous Toolkit - hilbert_curve
- Function file:
x, y
hilbert_curve(n)
Creates an iteration of the Hilbert space-filling curve with n points. The argument n must be of the form
2^M
, where m is an integer greater than 0.n = 8 [x ,y] = hilbert_curve (n); line (x, y, "linewidth", 4, "color", "blue");