Gaussian Quadrature for Triangles
Updated 21 Dec 2005
This script computes Gauss nodes and weights for numerically integrating a fuction over an arbitrary triangular domain. Note: This method uses the collapsed square rather than the general cubature case.
Greg von Winckel (2023). Gaussian Quadrature for Triangles (https://www.mathworks.com/matlabcentral/fileexchange/9230-gaussian-quadrature-for-triangles), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Sign of weights depended on ordering of vertices through the Jacobian. This has been fixed.