pollegendreP

Legendre polynomial basis in [-1 1].


Syntax
   V = pollegendreP(n)

Description
   V = pollegendreP(n) constructs the V matrix such that XV = P, where P 
   are the Lengendre polynomials and X = [x^0, x^1, ...]. 

Input
   n = orthogonal polynomial basis dimension (integer).

Output
   V = matrix such that XV = P (double matrix).

See also
  polchebyshevT,
         polchebyshevU,
         polgegenbauerC,
         polhermiteH,
         pollaguerreL and
         polbesselY.