Code covered by the BSD License  

Highlights from
Hilbert Curve

5.0

5.0 | 8 ratings Rate this file 24 Downloads (last 30 days) File Size: 1.2 KB File ID: #4646
image thumbnail

Hilbert Curve

by Federico Forte

 

18 Mar 2004 (Updated 09 Apr 2004)

How to draw the famous Hilbert curve, the curve that fills an area.

| Watch this File

File Information
Description

This recursive function calculates coordinates of n-th order Hilbert curve. It is then possible to plot it using the "line" command.

MATLAB release MATLAB 5.2 (R10)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
24 Mar 2004 eppi fader

Very simple and very powerful!!

08 Oct 2005 kipsang benjamin

excelent

25 Apr 2006 Dereje Teferi

simple, fast and excellent algorithm that works

08 Sep 2006 Guido Longoni

Thank you very much for this script!
The recursion is a very elegant solution, in particular when dealing with .. fractal curves!!!

04 Jun 2007 Candice Magritte

Very nice!

08 Jun 2007 PAUL GILI

Ciao, Federico, buon lavoro, Grazie!

12 Aug 2009 Walter

is there a 3d version?

18 Oct 2010 Krishna Lalith

Simply Awesome.

29 Sep 2011 Michael Völker  
Please login to add a comment or rating.
Updates
09 Apr 2004

Modified "Peano curve" in more correct "Hilbert curve".

Tag Activity for this File
Tag Applied By Date/Time
fractals Federico Forte 22 Oct 2008 07:16:43
hilbert Federico Forte 22 Oct 2008 07:16:43
curve Federico Forte 22 Oct 2008 07:16:43
peano Federico Forte 22 Oct 2008 07:16:43
area filling Federico Forte 22 Oct 2008 07:16:43
fractal Federico Forte 22 Oct 2008 07:16:43
hilbert Alex Knight 04 Aug 2009 06:24:15

Contact us at files@mathworks.com