pascal {matlab}R Documentation

MATLAB pascal function

Description

Generate Pascal matrix.

Usage

pascal(n, k = 0)

Arguments

n numeric scalar specifying order
k numeric scalar specifying desired option. Valid values are 0, 1, or 2

Details

Specifying no option returns symmetric positive definite matrix with integer entries taken from Pascal's triangle.

Specifying option one returns the lower triangular Cholesky factor (up to the signs of the columns) of the Pascal matrix.

Specifying option two returns a cube root of the identity matrix.

Value

Returns matrix of order n according to specified option k.

Author(s)

P. Roebuck, roebuck@mdanderson.org

Examples

pascal(4)
pascal(3, 2)

[Package matlab version 0.8-2 Index]