X = pascal(n)X = pascal(n,1)X = pascal(n,2)
X = pascal(n) returns the Pascal matrix of order n. X is a symmetric, positive, definite matrix with integer entries made up from Pascal's triangle. The inverse of X has integer entries.
X = pascal(n,1) is the lower triangular Cholesky factor (up to the signs of the columns) of the Pascal matrix. It is involuntary, that is, it is its own inverse.
X = pascal(n,2) is a transposed and permuted version of pascal(n,1). X is a cube root of the identity matrix.
(pascal(3,2))^3ans =1 0 00 1 00 0 1
chol
(c) Copyright 1994 by The MathWorks, Inc.