当前位置:网站首页>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 ÿ
边栏推荐
- Get class files and attributes by reflection
- testing framework
- postmessage通信
- Literacy Ethernet MII interface types Daquan MII, RMII, smii, gmii, rgmii, sgmii, XGMII, XAUI, rxaui
- LSA Type Explanation - detailed explanation of lsa-2 (type II LSA network LSA) and lsa-3 (type III LSA network Summary LSA)
- SD_CMD_SEND_SHIFT_REGISTER
- 二分查找(折半查找)
- Utf8 encoding
- Use the Paping tool to detect TCP port connectivity
- Orin 两种刷机方式
猜你喜欢

三体目标管理笔记

Steps and FAQs of connecting windows Navicat to Alibaba cloud server MySQL

Ros2 - node (VII)

Ros2 - function package (VI)
![LSA Type Explanation - lsa-1 [type 1 LSA - router LSA] detailed explanation](/img/1f/30407bce35c324cc90f139b6f09fd1.jpg)
LSA Type Explanation - lsa-1 [type 1 LSA - router LSA] detailed explanation

SolidWorks template and design library are convenient for designers to call

Financial risk control practice -- feature derivation based on time series

并发编程 — 死锁排查及处理

All English in the code

IPage能正常显示数据,但是total一直等于0
随机推荐
Unity UGUI不同的UI面板或者UI之间如何进行坐标匹配和变换
ROS2——工作空间(五)
GDB code debugging
The difference between new and malloc
Initialization of global and static variables
Empire help
A brief introduction to heading/pitch/roll and omega/phi/kappa
U-Boot初始化及工作流程分析
Positive height system
UTC, GPS time and Tai
Pycahrm reports an error: indentation error: unindent does not match any outer indentation
Ros2 - first acquaintance with ros2 (I)
【软件测试】06 -- 软件测试的基本流程
[MySQL 8.0 does not support capitalization of table names - corresponding scheme]
[tf] Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initial
CGroup CPU group source code analysis
6-4 search by serial number of linked list
Ros2 - configuration development environment (V)
SD_CMD_SEND_SHIFT_REGISTER
全局变量和静态变量的初始化