ARCGRIDWRITE converts data in a matlab grid (as produced by eg. meshgrid and griddata) into a text file in Arc ASCII Grid Format. The file can also be automatically converted to raster on PC's with ARCINFO installed.
EXAMPLE - create a raster grid of the peaks function
Because the Arc ASCII format has only one parameter for cell size, both X and Y must have the same, non-varying grid spacing.