image thumbnail


version 1.0.0 (73.4 KB) by Ethan Kubatko
Gauss–Legendre quadrature weights and points for numerical integration.


Updated 21 Jun 2021

View License

Q = quadGaussLegendre(n), where n is a positive integer, returns the n-point Gauss–Legendre quadrature rule Q as a stucture with fields Q.Points and Q.Weights, which store the n points (in ascending order) and corresponding weights, respectively, of the quadrature rule. An additional field, Q.Properties, stores the degree, type and interval, or domain, of the quadrature rule (the default domain is [-1,1]) in subfields .Degree, .Type and .Domain, respectively.

Cite As

Ethan Kubatko (2021). quadGaussLegendre (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!