Miscellaneous Toolkit - hc2ind


k: = hc2ind (Z)
k: = hc2ind (X,Y)

Converts Hilbert curve to linear matrix indices.

 [x,y] = hilbert_curve (2);
 hc2ind (x, y);
 ans =
   1
   2
   4
   3