pascal
- :
A =pascal(n)¶ - :
A =pascal(n, t)¶ Return the n-by-n Pascal matrix.
For t = 0 (the default) the result is the symmetric positive definite matrix of binomial coefficients. For t = 1 it is the lower triangular Cholesky factor with alternating signs in its columns. For t = 2 it is a rotated version of that factor which is a cube root of the identity. The value t = -1 yields the unsigned lower triangular matrix of binomial coefficients.