arcgridread - Read gridded data set in Arc ASCII Grid Format

Syntax

[Z,R] = arcgridread(filename)

[Z,R] = arcgridread(filename) reads a grid from a file in Arc ASCII Grid format. Z is a 2-D array containing the data values. R is a referencing matrix (see makrefmat). NaN is assigned to elements of V corresponding to null data values in the grid file.

Example

[Z,R] = arcgridread('MtWashington-ft.grd');
mapshow(Z,R,'DisplayType','surface');
xlabel('x (easting in meters)'); ylabel('y (northing in meters)')
colormap(demcmap(Z))

% View the terrain in 3-D
axis normal; view(3); axis equal; grid on
zlabel('elevation in feet')

See Also

makerefmat, mapshow, sdtsdemread

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS