Grid Sphere

Produces a nearly even grid over the surface of a sphere.

Download
Download

You are now following this Submission

Cite As

Kurt von Laven (2026). Grid Sphere (https://www.mathworks.com/matlabcentral/fileexchange/28842-grid-sphere), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.15.0

Added a link to another FX submission that this submission uses code from.

Download
1.14.0

Moved some words in comments onto previous lines where they fit without exceeding 80 columns.

Download
1.13.0

Removed write and execute permissions from group/others on all *.m files.

Download
1.12.0

Removed trailing whitespace and switched from 2 spaces after each period to 1 in the interest of readability.

Download
1.11.0

Added space in title.

Download
1.10.0

Made code available as a toolbox and removed some unnecessary hidden files.

Download
1.9.0

A MATLAB user reported a crash on line 23 of RemoveEqualPairs.m. This change fixes the type mismatch error by converting a double to a uint32. GNU Octave users will be unaffected by this change as GNU Octave handles the type conversion automatically.

Download
1.8.0

Fixes a serious bug in RemoveEqualPairs that resulted in a small number of latitude, longitude pairs being omitted from the final output of GridSphere. Big thanks to Francisco for the bug report.

Download
1.7.0

n/a

Download
1.5.0

Replaced tabs with spaces so that the source code displays consistently in all text editors.

Download
1.4.0

Added usage example per user request.

Download
1.3.0

Replaced the ElementWiseMax function with an equivalent built-in function.

Download
1.2.0

Under the description, I added a link to the FindNearestNeighbors function.

Download
1.1.0

Added a missing function file.

Download
1.0.0

Download