Numerical integration Legendre Polynomials MATLAB
问题 The Legendre polynomials are implemented in MATLAB as vectors, where you also get all the associated Legendre polynomials evaluated at a particular point x. Thus, I don't know how I can use these functions inside an integral. My question is: How can I evaluate the (NUMERICALLY CALCUALTED(!)) integral from -1 to 1 over the n-th Legendre polynomial in Matlab? EDIT: As I received an answer that is really not what I want: I want to use the implementation of the Legendre polynomials in MATLAB