polysection

Create cross sections along waypoints based on a 3D grid interpolated from xyz scatter data.

You are now following this Submission

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 (2026). polysection (https://ch.mathworks.com/matlabcentral/fileexchange/26338-polysection), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: riverscatter

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

-Changed Export bug

1.3.0.0

-Adjusted 3-D visualization default settings
-Fixed user input error when asked to export to Excel

1.2.0.0

-Added Excel export option

1.1.0.0

Updated description.

1.0.0.0