Gradient for scattered data

Compute gradient on triangle faces or their vertices for triangulated data
666 Downloads
Updated 31 Oct 2012

View License

[dFx,dFy] = TRIGRADIENT(TRI,X,Y,Z) or TRIGRADIENT(TRI,X,Y,Z,'vertex') returns numerical gradients of the function z = F(x,y), dFx = dF/dx and DFy = dF/dy at the vertices of the triangles specified in TRI. dFx and dFy are column vectors having the same number of elements as X,Y, and Z.

[dFx,dFy] = TRIGRADIENT(TRI,X,Y,Z,'face') returns the numerical gradients that are constant over each triangle face. In this case, dFx and dFy are column vectors having M = size(TRI,1) elements.

Cite As

Duane Hanselman (2024). Gradient for scattered data (https://www.mathworks.com/matlabcentral/fileexchange/38857-gradient-for-scattered-data), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Triangulation Representation in Help Center and MATLAB Answers
Tags Add Tags

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