The following are some useful links that can help you:
2) File Exchange Submission - hexagonalGrid - creates hexagonal grid points starting from the origin.
>> pts = hexagonalGrid([0 0 12 12], [0 0], 2)
>> scatter(pts(:,1),pts(:,2))
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!