ASCII-RASTER header To R spatial reference matrix

Conversion of a header variable into the spatial reference matrix used in Mapping Toolbox.
418 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 (2024). 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!
Version Published Release Notes
1.0.0.0