ASCII-RASTER header To R spatial reference matrix

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


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');
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 (2022). 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!