ASCII-RASTER header To R spatial reference matrix

Conversion of a header variable into the spatial reference matrix used in Mapping Toolbox.

You are now following this Submission

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 (2026). ASCII-RASTER header To R spatial reference matrix (https://uk.mathworks.com/matlabcentral/fileexchange/26529-ascii-raster-header-to-r-spatial-reference-matrix), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0