pascal
Pascal matrix
Syntax
P = pascal(n)
P = pascal(n,1)
P = pascal(n,2)
P = pascal(___,classname)
Description
P = pascal(
返回一个Pascal’s Matrixof ordern
)n
.P
is a symmetric positive definite matrix with integer entries taken from Pascal's triangle. The inverse ofP
has integer entries.
P = pascal(
returns the lower triangular Cholesky factor (up to the signs of the columns) of the Pascal matrix.n
,1)P
isinvolutary, that is, it is its own inverse.
P = pascal(
返回一个transposed and permuted version ofn
,2)pascal(n,1)
. In this case,P
is a cube root of the identity matrix.
P = pascal(___,
返回一个matrix of classclassname
)classname
using any of the input argument combinations in previous syntaxes.classname
can be'single'
or'double'
.
Examples
Input Arguments
More About
Extended Capabilities
Introduced before R2006a
Was this topic helpful?