image thumbnail

ASCII-RASTER header To R spatial reference matrix

version 1.0.0.0 (1.27 KB) by Giuliano Langella
Conversion of a header variable into the spatial reference matrix used in Mapping Toolbox.

416 Downloads

Updated 29 Jan 2010

View License

The header MatLab variable is generated when importing an ASCII-RASTER with the ImportAsciiRaster.m function.

Here below an example:

[Z h] = ImportAsciiRaster(NaN, 'h');
figure;
mapshow(Z, header2R(h),'DisplayType','surface');
view(3), axis equal, axis off, camlight, lighting phong
axis on; xlabel('Easting'); ylabel('Northing'); zlabel('Values')

Cite As

Giuliano Langella (2021). ASCII-RASTER header To R spatial reference matrix (https://www.mathworks.com/matlabcentral/fileexchange/26529-ascii-raster-header-to-r-spatial-reference-matrix), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!