legendre
- :
p =legendre(n, x)¶ - :
p =legendre(n, x, normalization)¶ Associated Legendre functions of degree n and orders m = 0, ..., n, evaluated at the real values x in [-1, 1].
Row
m+1of the result holds P_n^m(x). By default ("unnorm") the functions include the Condon-Shortley phase (-1)^m."sch"gives the Schmidt semi-normalized and"norm"the fully normalized functions, both without that phase factor.For a scalar x the result is a column vector; for a vector x it is
(n+1)-by-numel (x); for an array it has size[n+1, size(x)].