.xyz file functions
Version 1.0.0.0 (18.3 KB) by
Chad Greene
Read .xyz files and make gridded datasets.
Here are two functions:
xyzread reads text .xyz files into your Matlab workspace. This is written for GMT-generated .xyz files, but may work for other .xyz files as well.
xyz2grid converts the columnated data from a .xyz file into a gridded dataset that can be viewed with surf, pcolor, or imagesc. Note: this function does not interpolate! It simply reshapes the z values from a column of z data and puts them into a 2D matrix.
Cite As
Chad Greene (2026). .xyz file functions (https://in.mathworks.com/matlabcentral/fileexchange/56414-xyz-file-functions), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2012b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Read, Write, and Modify Image in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
xyz file operations/
xyz file operations/html/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
