LegendrePoly

This program returns the coefficients of the Legendre polynomial P_n, given n.

You are now following this Submission

This program returns the coefficients of the Legendre polynomial P_n, given n. The result is a row vector with powers of x decreasing from left to right (standard MATLAB notation). Like for other polynomials, LegendrePoly(n) can be evaluated at x by typing

polyval(LegendrePoly(n),x).

Cite As

David Terr (2026). LegendrePoly (https://au.mathworks.com/matlabcentral/fileexchange/4890-legendrepoly), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: LegendreShiftPoly

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

I modified this function so that it returns a column vector.