www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/MatrixFromPascalsTriangleExample.m

    %% Matrix from Pascal's Triangle
% Compute the fourth-order Pascal matrix.
A = pascal(4)

%%
% Compute the lower triangular Cholesky factor of the third-order Pascal
% matrix and verify it is involutary.
A = pascal(3,1)

%%
inv(A)