当前位置:网站首页>Matlab reference
Matlab reference
2022-07-05 17:42:00 【Selvaggia】
Here's the catalog title
dslove,solve,ode45,simplify,
syms,inline
eval( Used to cycle )
eval Function can also evaluate the value of a symbolic expression . Don't define f(x)
Direct definition f,x=2, eval(f) You can figure it out f(2) Value
rref: Reduce the matrix to Row trapezoidal matrix , By the way, linear equations can be solved
rref It can also simplify at the same time , By the way, we get the maximal unrelated group
rref Find the maximum independent group and pass for Loop printing
expand、factor( polynomial )
vpa
MATLAB Knowledge system
Knowledge system of linear algebra
Symbolic function
syms f(x) —— Define two symbolic variables ,f and x, And there is a functional relationship between the two
When declaring symbolic functions , You can also use inline function :
f = inline(“x ^ 3+5x”) perhaps ff = inline(’-xsin(x^2-x-1)’, ‘x’) If not quoted , Then its internal variables should be known .
Matrix operations
Matrix operations
1、 Some special matrices ,
ones(m,n)
zeros(M, N)
2、 Addition and subtraction of matrix
3、 Dot product of matrix 、 Point division
Matrix Point multiplication , Multiply the corresponding elements , You can also multiply each element of the matrix by a constant
4、 Left division of matrix \ Divide with right /
Simple memory Matlab Left division in () And right division (/)
be demoted : C = B\A That is to say BC =A
Divide right : C = B/A That is to say CA = B
AX=b, solve X matrix ,X = A\b
5、 The power of a matrix X^y
Solving differential equations
dsolve、ode A series of functions
D: Differential symbols ;D2 Second order differential ,D3 Represents a third-order differential , And so on .
Y = dsolve(‘eq1,eq2,…’ , ’cond1,cond2,…’ , ’Name’)
among ,‘eq1,eq2,…’: Represents a differential equation or system of differential equations ;
’cond1,cond2,…’: Indicates initial or boundary conditions ;
‘Name’: Said variable . When no variable is specified ,matlab The default variable is t;
About ode45 Use
Let's do another example
ode45 Numerical solutions for solving differential equations
matlab in desolve、solve The application of function
Second order differential equations , Turn up a few books
solve Detailed explanation :1) equation : single / Multivariable + linear / nonlinear ;2) inequality
Matlab in diff Use of functions
边栏推荐
- 为什么阳历中平年二月是28天
- 漫画:有趣的【海盗】问题
- Compter le temps d'exécution du programme PHP et définir le temps d'exécution maximum de PHP
- C (WinForm) the current thread is not in a single threaded unit, so ActiveX controls cannot be instantiated
- mysql如何使用JSON_EXTRACT()取json值
- Cloud security daily 220705: the red hat PHP interpreter has found a vulnerability of executing arbitrary code, which needs to be upgraded as soon as possible
- ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
- Sentinel-流量防卫兵
- Flow characteristics of kitchen knife, ant sword, ice scorpion and Godzilla
- Tips for extracting JSON fields from MySQL
猜你喜欢
Machine learning 01: Introduction
MySQL queries the latest qualified data rows
Mongodb (quick start) (I)
Tips for extracting JSON fields from MySQL
Knowledge points of MySQL (7)
Kafaka technology lesson 1
一文了解MySQL事务隔离级别
Abnormal recovery of virtual machine Oracle -- Xi Fenfei
mysql中取出json字段的小技巧
What are the precautions for MySQL group by
随机推荐
Disabling and enabling inspections pycharm
MySQL之知识点(六)
Knowledge points of MySQL (7)
Cloud security daily 220705: the red hat PHP interpreter has found a vulnerability of executing arbitrary code, which needs to be upgraded as soon as possible
一文读懂简单查询代价估算
About JSON parsing function JSON in MySQL_ EXTRACT
mysql5.6解析JSON字符串方式(支持复杂的嵌套格式)
漫画:如何实现大整数相乘?(上) 修订版
How MySQL uses JSON_ Extract() takes JSON value
Alpha conversion from gamma space to linner space under URP (II) -- multi alpha map superposition
为什么阳历中平年二月是28天
ICML 2022 | meta proposes a robust multi-objective Bayesian optimization method to effectively deal with input noise
排错-关于clion not found visual studio 的问题
服务器配置 jupyter环境
论文阅读_中文NLP_LTP
2022 information system management engineer examination outline
The five most difficult programming languages in the world
Cartoon: interesting [pirate] question
Sentinel-流量防卫兵
33: Chapter 3: develop pass service: 16: use redis to cache user information; (to reduce the pressure on the database)