当前位置:网站首页>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 ÿ
边栏推荐
猜你喜欢

Mutual transformation between two-dimensional array and sparse array (sparse matrix)

【软件测试】03 -- 软件测试概述

ROS2——ROS2对比ROS1(二)

Log4qt usage of logbase in QT project

Database mysql all

ROS2——配置开发环境(五)

Ret2xx---- common CTF template proposition in PWN

ethtool 原理介绍和解决网卡丢包排查思路(附ethtool源码下载)

. Net core stepping on the pit practice

SD_CMD_RECEIVE_SHIFT_REGISTER
随机推荐
Skywalking all
SOC_SD_DATA_FSM
Speedtree01 generator properties
.net core踩坑实践
Interpretation of the earliest sketches - image translation work sketchygan
网易To B,柔外刚中
扫盲-以太网MII接口类型大全-MII、RMII、SMII、GMII、RGMII、SGMII、XGMII、XAUI、RXAUI
[nvidia] CUDA_ VISIBLE_ DEVICES
你心目中的数据分析 Top 1 选 Pandas 还是选 SQL?
ROS2——初识ROS2(一)
iNFTnews | 喝茶送虚拟股票?浅析奈雪的茶“发币”
Volcano resource reservation feature
Financial risk control practice -- feature derivation based on time series
Xiaomi written test real question 1
SD_CMD_SEND_SHIFT_REGISTER
The differences and connections among cookies, sessions, JWT, and tokens
Volcano 资源预留特性
Docker installs MySQL and uses Navicat to connect
ROS2——工作空间(五)
Sre core system understanding