TRIGRADIENT.M

Fast approximation to the gradient for scattered data and for data defined by a triangulation.

Download
Download

You are now following this Submission

Cite As

Mick Warehime (2026). TRIGRADIENT.M (https://uk.mathworks.com/matlabcentral/fileexchange/36837-trigradient-m), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Contours for triangular grids

Inspired: Gypaets/trigradient2

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Fixed example code.
Fixed bug with number of inputs/options checks.

Download
1.5.0

Code is now entirely vectorized. It no longer loops over each node.

Option to allow output of the gradient of individual triangular planes has been added.

Download
1.4.0

Found another typo in comments

Download
1.3.0

Corrected a typo in the error output.

Download
1.2.0

Fixed typos to handle z with multiple columns. Changed several typos in help documentation. Removed two ~ to prevent earlier versions from crashing.

Download
1.0.0

Download