To create matrix a
with generic element a_{ij}=\max(i,j)
, you can use the following MATLAB code:
main.m157 chars9 lines
To calculate the Cholesky factorization of b = a^T * a
and find the element in row 52, column 64 of the Cholesky factor, you can use the following MATLAB code:
main.m166 chars6 lines
The value of the element at row 52, column 64 of the Cholesky factor of b
can be found in the variable element_5264
.
gistlibby LogSnag