MATLAB的应用 Applications of MATLAB in engineering
文章目录
- (〇)前言——【先看看】
- (一) 【Basic operation(introduce MATLAB)】——【基本操作(介绍MATLAB)】:
- (二) 【Matlab as calculator】,【Array operation】——【Matlab作为计算器】、【数组运算】:
- (三) 【Script writing】,【structured programming】,【User-defined function】——【脚本编写】、【结构化编程】、【自定义函数】:
- (四) 【Variables:string,strcture,cell】,【Date access】——【变量:字符串、结构、单元格】、【数据库访问】:
- (五) 【Basic plotting】,【Graphical object properties】——【基础绘图】、【图形对象属性】:
- (六) 【Advanced 2D plots】,【Color space】,【3D plots】——【高级2D绘图】、【色彩空间】、【3D绘图】:
- (七) 【Graphical user interface】——【图形用户界面】:
- (八) 【introduction to digital image】,【read and show images】,【image arithmetic】——【数字图像概论】、【图像读取与显示】、【图像算法】:
- (九) 【Image thresholding】,【Background estimation】,【Connected-component labeling】——【图像阈值化】、【背景估计】、【连通分量标注】:
- (十) 【Polynomial differentiation and integration】,【Numerical differentiation and integration】——【多项式微分与积分】、【数值微分与积分】:
- (十一) 【symbolic approach】,【numeric root solvers】,【recursive function】——【符号法】、【数值根求解】、【递归函数】:
- (十二) 【Statistics】——【统计】:
(〇)前言——【先看看】
本文是对MATLAB一些应用的介绍。可以帮助理解MATLAB的功能和用法
后面会慢慢更新具体的MATLAB在工程中的一些应用
学习于B站视频,整理出来一些学习资料。英文版的,也可以提升英语能力
这里也推荐一些最基础入门的学习网站
http://c.biancheng.net/matlab/
https://www.ilovematlab.cn/resources/
需要word版的可以下载附件资源
一些源代码也会在我的另一份博文里提供
源代码https://blog.csdn.net/Nirvana_Tai/article/details/105391688
有交流或者建议可以联系我 QQ:1756170618
(一) 【Basic operation(introduce MATLAB)】——【基本操作(介绍MATLAB)】:
i. search Function name by online or help
ii. variable,and search its type in double click or input whos(which is more
in detail than who)
iii. π=pi,∞=Infinitely small=eps,NaN:not a number,i,j=complex number
iv. sqrt: square root
v. no use built-in function or keyword as variable name, if you use it, must clear this variable name
vi. format+bank(short/long/shortE/rat and so on)
bank: two decimal places
short: four decimal places
long: many decimal places
scientific notation +E
traction rat
vii. command line terminal:use ;
viii. Press the arrow key to bring it up and down command history
ix. Input “clear”to remove all workspace,input”clc”to remove all command window
(二) 【Matlab as calculator】,【Array operation】——【Matlab作为计算器】、【数组运算】:
i. Basic:use “[ ]”to express array
ii. Row vector—[ ];column vector—[ ; ; ; ; ]
iii. Inner product;outer product This like this:[1 1 1][1;1;1]is inner product, [1;1;1] [1 1 1]is outer product.
iv. Matrix:use semicolon to divide each row
v. Indexing:input array name with(row,column)
Addition:input A(1,:) to index all value in third row
vi. Replace entries:
If want to delect which row or column,using A(x,:)=[ ]
vii. Colon operator:equal difference series
Like A=1(first number value):1(equal difference):50(final number value)
viii. Array concatenation:use F=[A(array one) B(array another)]
ix. Array manipulation:look out:AB different with A.B
Array +constant:Ax Array transposition:A’
x. Some special Matrix
eye(n):nn identity matrix
zeros(n1,n2):n1n2 zero matrix
ones(n1,n2):n1n2matrix with every entry as 1
diag( ):diagonal matrix
xi. Some Matrix related functions
max(A):index and show max entry in every column
max(max(A)): index and show max entry in array
sum(A):sum each entry in every column
mean(A):mean in every column
sort(A):sort entry’s size in each column
sortrows(A):sort first column’s entries and sort it with rows
size(A):the size of matrix
length(A):the column’s length
find(A==x)
xii. some operation
Matrix determinant: det(A)
Inverse matrix: inv(A) or A^-1
adjoint matrix: A*=det(A)inv(A)
prod(1:n)=n!
1e100=110^100
(三) 【Script writing】,【structured programming】,【User-defined function】——【脚本编写】、【结构化编程】、【自定义函数】:
i. Script editor: % as annotation,%% to divide section
Debug: use breakpoint
Smart indent: inverse blank space
ii. Script flow: typically scripts run from the first line to the last
Flow control,
relational operators: ~=:not equal to
&&:and ||:or
It is logical, because it belong to Boolean
iii. If/elseif/else: ,”elseif”and”else” are optional
[‘even’ even number ’odd’ odd number]
iv. Edit grammar
‘disp’ is means ‘printf’which in C language
‘input_(xxx)’ is means ‘int()’
v. Switch :
vi. While:
vii. For:
viii. Pre-allocating space to variables: if not pre-allocating space to variables will spend more
time to debug. Can record time.
ix. Break:
x. Tips for script writing:
Use semicolon(
MATLAB的应用 Applications of MATLAB in engineering相关推荐
- matlab 2017 ubuntu,ubuntu安装matlab R2017,
ubuntu安装matlab R2017, sudo cp license_standalone.lic /usr/local/MATLAB/R2017b/licenses/ sudo cp libm ...
- matlab builder for java下载,Matlab Builder JA - Compile Matlab into a Java jar - Free Version?
问题 Please keep in mind that I know nothing about Matlab. Matlab Builder JA lets developer build Matl ...
- matlab编写转台程序,基于Matlab三轴惯导测试转台结构分析.doc
基于Matlab三轴惯导测试转台结构分析 基于Matlab三轴惯导测试转台结构分析 摘 要:三轴惯导测试转台作为惯导测试设备,其精度直接影响惯导设备的精度,而中框回转精度在三轴精度相对较差.影响其中框 ...
- 智能控制matlab程序,智能算法的Matlab仿真程序及教程
智能算法的Matlab仿真程序及教程 所属分类:*行业应用 开发工具:C/C++ 文件大小:3834KB 下载次数:4 上传日期:2020-07-02 11:17:04 上 传 者:nickyang ...
- matlab怎么设置参数设置,matlab设置参数
matlab精度设置_计算机软件及应用_IT/计算机_专业资料.format 这个函数不是用于控制运算精度的,它只能控制结果显示类型.运 算的时候还是用 matlab 自己的精度,具体...... 参 ...
- MatLab建模学习笔记3——MatLab工具箱
1.平面操作工具箱 http://cathy.ijs.si/~leon/planman.html 2.SimMechanics 工具箱 (这个好像不是免费的) http://www.mathworks ...
- matlab模块化编程,DSP2812基于MATLAB模块化编程的SPWM调制实现.pdf
[实例简介] DSP2812基于MATLAB模块化编程的SPWM调制实现 58 32 Simulink func- tion builder SCI S-Function Builder B DSP ...
- matlab怎么美化gui按钮,matlab中美化gui
10分钟搞定matlabGUI 参考文献: MATLAB程序设计教程 李海涛,邓樱 编著 高等教育出版社,2002 2. 菜单方式 在Matlab的主窗口中,选择File菜单中的New菜单项, 再选择 ...
- matlab科学计算及分析,matlab科学计算
spContent=当前,科学计算已经成为科学研究.技术创新的重要方法与手段,而作为实现工具的科学计算软件无疑具有至关重要的作用.MATLAB为众多领域的计算问题提供了全面的解决方案,代表了当今国际科 ...
最新文章
- 光学传输与摄像头光学技术
- php 检测网络,PHP+Ajax 检测网络是否正常实例详解
- 一次问卷产品的MVP设计
- 对于sonar展示的问题数的研究
- Qt QString 与char* 相互转换
- macOS 上使用 lightgbm 遇到的坑及解决方法
- 618 前夕,不谈促销,京东云带你聊聊技术……
- 第十章——维护索引(1)——索引碎片
- 学习scala03 控制结构
- 《产品设计与开发(原书第5版)》——第1章 概论 1.1 成功的产品开发的特点...
- vn的可变数据类型_可变与不可变数据类型详解
- java 排队实现_Java实现排队论的原理
- linux bzip指定名称,Linux基础命令---bzip2
- 如何通过蒲公英批量获取iPhone设备的udid
- 如何申请Autodesk ReCap 360 photo的云币(Cloud Credit)
- 看图赏鉴——阿里云张北数据中心
- Excel技能之查找筛选排序,同事竖起大拇指
- 猿创征文 |【gin-vue-admin】后端结构设计和基本工作原理
- 2421:Exchange Rates——动态规划
- 人一切的痛苦,本质上都是对自己的无能的愤怒。──王小波