矩阵求解,随机产生一个矩阵我要分享

Matrix solution, randomly generate a matrix

矩阵求解

关注次数: 192

下载次数: 0

文件大小: 2KB

代码分类: 仿真计算

开发平台: matlab

下载需要积分: 1积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:

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 > 2. Create a 5th order magic matrix and find the determinant, eigenvalue, inverse, rank, trace and condition number of A < p > 3. Assuming the matrix, find the LU decomposition, orthogonal decomposition, eigenvalue decomposition and singular value decomposition of A < p > 4. Create a 6th order unit sparse matrix and display all its elements


代码预览