Weighted Grid Points
Updated 10 Jan 2005
Construct a symbolic nonnegative weighting function w(x) on the interval [-1,1] and this script constructs the family of polynomials which are orthogonal with respect to the weight. Then the extrema of the highest polynomial are computed. Examples: w=1*x^0 gives the Legendre Lobatto points and w=1/sqrt(1-x^2) gives the Chebyshev Lobatto points. Useful for pseudospectral/collocation methods.
Greg von Winckel (2023). Weighted Grid Points (https://www.mathworks.com/matlabcentral/fileexchange/6691-weighted-grid-points), 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.
Missing information: requires earlier script collocD.m file ID 5515 to run correctly.