MATLAB Function Reference Previous page   Next Page
pascal

Pascal matrix

Syntax

Description

A = pascal(n) returns the Pascal matrix of order n: a symmetric positive definite matrix with integer entries taken from Pascal's triangle. The inverse of A has integer entries.

A = pascal(n,1) returns 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.

A = pascal(n,2) returns a transposed and permuted version of pascal(n,1). A is a cube root of the identity matrix.

Examples

pascal(4) returns

A = pascal(3,2) produces

See Also

chol


Previous page  partialpath patch Next page

© 1994-2005 The MathWorks, Inc.