View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Gauss Quadrature for Tetrahedra

5.0 | 3 ratings Rate this file 11 Downloads (last 30 days) File Size: 1.78 KB File ID: #9389 Version: 1.0

Gauss Quadrature for Tetrahedra



16 Dec 2005 (Updated )

Compute Gauss weights and nodes for a specied tetrahedron

| Watch this File

File Information

This script computes the (x,y,z) Gauss quadrature nodes and weights for a tetrahedron with user-specied vertices.


This file inspired Homogen Integrate On Triangular Area And Tetrahedral Volume.

MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
27 Feb 2013 yj2011

yj2011 (view profile)

Work wonderfully. One question. Not quite understand the Gauss Quadrature, but I noticed that the code by default outputs 64 note points. Can I increase the number of note points in order to improve the integration results?

19 Mar 2012 saurabh gupta

21 Dec 2005 John D'Errico

Its fixed. Thanks Greg.

20 Dec 2005 John D'Errico

Wait until Greg fixes this. The following code fragment should compute the volume of a simple tetrahedron.
At the very least, since the function is constant over the
simplex domain, its integral should be positive.

V = [0 0 0;0 0 1;0 1 0;1 0 0];
F = ones(size(X));
Q = W'*F

Q =

The magnitude is correct, just the sign is wrong. Q should be 1/6.

Comment only

Contact us