中文说明:
1、随机生成一个5*5矩阵A,元素符合均匀分布;再随机生成一个5*5矩阵B,元素符合正态分布。对A和B进行加、减、乘、除、比较等矩阵运算,查看运算结果。
2、创建5阶魔术矩阵,求A的行列式、特征值、逆、秩、迹、条件数。
3、假设矩阵 ,求A的LU分解、正交分解、特征值分解、奇异值分解。
4、创建6阶单位稀疏矩阵,并显示其全部元素。
English Description:
1. Randomly generate a 5 * 5 matrix A, and the elements conform to uniform distribution; Then randomly generate a 5 * 5 matrix B, and the elements conform to the normal distribution. Perform matrix operations such as addition, subtraction, multiplication, division and comparison on a and B to view the operation results p> < p > 2. Create a 5th order magic matrix and find the determinant, eigenvalue, inverse, rank, trace and condition number of A p> < p > 3. Assuming the matrix, find the LU decomposition, orthogonal decomposition, eigenvalue decomposition and singular value decomposition of A p> < p > 4. Create a 6th order unit sparse matrix and display all its elements p>