FUNCTION REFERENCE
legendre
Associated Legendre functions.
Associated Legendre functions.
Syntax
P = legendre(n, X)Syntax
P = legendre(n, X, normalization)Returns P_n^m(X) for m = 0..n, one row per m and one column per element of X, with the Condon-Shortley phase. normalization is 'unnorm' (default), 'sch' (Schmidt semi-normalized) or 'norm' (fully normalized).
Example
legendre(2, 0.5) % [-0.1250; -1.2990; 2.2500]Differences from MATLAB: X must be a vector or scalar; a matrix X (a 3-D result in MATLAB) is rejected. Degrees above 10000 are rejected.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.