Code hilbert3(n) represents the three dimensional hilbert curve.
Inspired by function [x,y] = hilbert(n) made by Federico Forte
Ivan Martynov (2021). hilbert3(n) (https://www.mathworks.com/matlabcentral/fileexchange/25348-hilbert3-n), MATLAB Central File Exchange. Retrieved .
So simple yet so beautiful. Perfect of example of the power of recursion.
I am very pleased, it's a honour for me to be the inspiration for this!
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!