Watch this Author's files
Not working on R2011a under OS X Snow Leopard (maci64). GRD files created by GMT 4.5.7-1.
I tried replacing netcdf in your routine by ncdisp, ncread, etc. embebed on R2011a and still no success.
What a pitty! Therefore I had to use grd2xyz GMT function to read XYZ in Matlab.