当前位置:网站首页>Application of MATLAB in Linear Algebra (4): similar matrix and quadratic form
Application of MATLAB in Linear Algebra (4): similar matrix and quadratic form
2022-07-05 07:03:00 【Wen Yu is solemn】
Sometimes we need exact eigenvalues and eigenvectors , You have to use Matlab Symbol operation function of .
stay Matlab The form of creating a symbolic matrix in is very similar to that of creating a numerical matrix , Just use symbols to define functions sym.
The following describes several forms of using this function to create a symbol matrix .
1、 Use sym Function directly creates the symbol matrix
This method is almost the same as the method of directly creating numerical matrix .
Matrix elements can be symbolic expressions , various The length of the symbolic expression can be different , Matrix elements can be separated by spaces or commas .
for example :
x=sym('[a+sin(d),b;1/c,d]'); y=det(x)
Get y=(d*c*a+d*c*sin(d)-b)/c
2、 Convert numerical matrix into symbolic matrix
stay Matlab in , Numerical matrices cannot be directly involved in symbolic operations , Must first be converted into a symbolic matrix .
for example :
a=[2/3,sqrt(2);3,1]
a=
0.66671.4142
3.00001.0000
b=sym(a)
b=
[ 2/3, sqrt(2)]
[3,1]
3、 Indexing and modification of symbol matrix
Matlab The index and modification of the symbol matrix of is exactly the same as that of the numerical matrix .
for example :
For the matrix in the above example b Make changes
b(2,2)='log(9)'
01
—
Find an orthogonal transformation x = Py ÿ
边栏推荐
- Vscode configures the typera editor for MD
- SOC_SD_CMD_FSM
- Build a microservice cluster environment locally and learn to deploy automatically
- C语言数组专题训练
- Technology blog learning website
- ROS2——配置开发环境(五)
- ethtool 原理介绍和解决网卡丢包排查思路(附ethtool源码下载)
- PHY驱动调试之 --- PHY控制器驱动(二)
- All English in the code
- Ros2 - install ros2 (III)
猜你喜欢
PowerManagerService(一)— 初始化
【MySQL8.0不支持表名大写-对应方案】
Rehabilitation type force deduction brush question notes D2
Dameng database all
ROS2——常用命令行(四)
PHY drive commissioning --- mdio/mdc interface Clause 22 and 45 (I)
.net core踩坑实践
SOC_SD_CMD_FSM
在本地搭建一个微服务集群环境,学习自动化部署
The problem of Chinese garbled code in the vscode output box can be solved once for life
随机推荐
Matlab在线性代数中的应用(四):相似矩阵及二次型
在本地搭建一个微服务集群环境,学习自动化部署
逻辑结构与物理结构
Unity 之 ExecuteAlways正在取代ExecuteInEditMode
Ros2 - node (VII)
Sre core system understanding
PR automatically moves forward after deleting clips
PowerManagerService(一)— 初始化
Xavier CPU & GPU high load power consumption test
Speedtree01 generator properties
[nvidia] CUDA_ VISIBLE_ DEVICES
基于FPGA的一维卷积神经网络CNN的实现(八)激活层实现
Ros2 - ros2 vs. ros1 (II)
并发编程 — 死锁排查及处理
Huawei bracelet, how to add medicine reminder?
The “mode“ argument must be integer. Received an instance of Object
Integer to 8-bit binary explanation (including positive and negative numbers) scope of application -127~+127
你心目中的数据分析 Top 1 选 Pandas 还是选 SQL?
Logical structure and physical structure
Error: “MountVolume.SetUp failed for volume pvc 故障处理