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