Here you will find the mex files grdinfo, grdread, and grdwrite, which can be used in Matlab or Octave to read and write grid files. The package originated with David Sandwell, UCSD, and was subsequently modified by Paul Wessel and Phil Sharfstein, UCSB. It is now maintained by Paul Wessel.