ImportAsciiRaster

Import Arc/Info AsciiRaster

You are now following this Submission

This function imports Arc-Info ASCII Raster (e.g. *.asc, *.txt) files. You are allowed to import single or multiple files by multi-selection (CRTL + Mouse_Left_Click). In the latter case by default a structure array is created in order to store the several rasters; items of the structure array are called as the imported raster. A facultative option is now added to create a stack of double 3-D array instead of a structure array in case more grid files are selected. This might be useful to handle for instance multi-temporal remote sensing datasets (such as NDVI), or multiple realizations of Geostatistical Simulation. The dimension of the stack you can create depends on your computer hardware.

Cite As

Giuliano Langella (2026). ImportAsciiRaster (https://www.mathworks.com/matlabcentral/fileexchange/19183-importasciiraster), 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.5.0.0

-the code was entirely revisited and some bugs were fixed;
-default REF is 'h' and not 'R' anymore;
-if 'FilePath' is given as input uigetfile does not start (otherwise do);
-rectangular pixel size is now supported.

1.3.0.0

A facultative option is now added to create a stack of double 3-D array instead of a structure array in case more grid files are selected.

1.1.0.0

A facultative option is now added to create a stack of double 3-D array instead of a structure array in case more grid files are selected.

1.0.0.0