Raster to XYZ

Converts an Arc ASCII Raster to a vector point file.
2.1K Downloads
Updated 25 Feb 2008

No License

This script simple reads in an ASCII raster file (in Arc ASCII Format) and then outputs a CSV file in XYZ format with a point (row) for each grid cell.

This is handy for converting gridded DEMs to raw point data.

It is slow because most of the IO part of the code can not be vectorized, but it does the trick.

Cite As

Joseph Wheaton (2024). Raster to XYZ (https://www.mathworks.com/matlabcentral/fileexchange/18894-raster-to-xyz), MATLAB Central File Exchange. Retrieved .

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

Inspired: ascii2xyz

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