Hilbert Curve
Version 1.0.0.0 (1.2 KB) by
Federico Forte
How to draw the famous Hilbert curve, the curve that fills an area.
This recursive function calculates coordinates of n-th order Hilbert curve. It is then possible to plot it using the "line" command.
Cite As
Federico Forte (2026). Hilbert Curve (https://se.mathworks.com/matlabcentral/fileexchange/4646-hilbert-curve), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R10
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Fractals >
Find more on Fractals in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Peano Space-Filling Curve, Lebesgue Space-Filling Curve
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Modified "Peano curve" in more correct "Hilbert curve". |
