image thumbnail


version (79.6 KB) by Jeff Tuhtan
Create cross sections along waypoints based on a 3D grid interpolated from xyz scatter data.


Updated 22 Feb 2010

View License

This function carries out the following tasks:

1) Imports a set of xyz scatter data, interpolates them to a uniform mesh, and creates a contour map figure of the results.

2) Allows for the user to interactively select a series of waypoints by selecting them using 'getpts' on the figure.

3) Creates a series of evenly spaced cross sections perpendicular to the polyline created by the waypoints.

4) Exports the results as a 3-D graphic.

5) Exports the cross section xyz coordinates to Excel as 'CSData.xls', where each cross section has its own worksheet.

An example scatter data set 'Scatter.dat' has been included.

Cite As

Jeff Tuhtan (2021). polysection (, MATLAB Central File Exchange. Retrieved .

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

Inspired: riverscatter

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!