这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 综合技术 » 基础知识 » matlab常用函数与常用指令大全

共1条 1/1 1 跳转至

matlab常用函数与常用指令大全

高工
2014-06-12 10:37:38     打赏

matlab常用函数与常用指令大全

matlab常用函数- -
1、特殊变量与常数
ans 计算结果的变量名
computer 确定运行的计算机
eps 浮点相对精度
Inf 无穷大
I 虚数单位
inputname 输入参数名
NaN 非数
nargin 输入参数个数
nargout 输出参数的数目
pi 圆周率
nargoutchk 有效的输出参数数目
realmax 最大正浮点数
realmin 最小正浮点数
varargin 实际输入 的参量
varargout 实际返回的参量
操作符与特殊字符
+ 加 - 减
* 矩阵乘法 .* 数组乘(对应元素相乘)
^ 矩阵幂 .^ 数组幂(各个元素求幂)
\ 左除或反斜杠 / 右除或斜面杠
./ 数组除(对应元素除)

kron Kronecker张量积
: 冒号 () 圆括
[] 方括 . 小数点
.. 父目录 ... 继续
, 逗号(分割多条命令) ; 分号(禁止结果显示)
% 注释 ! 感叹号
' 转置或引用 = 赋值
== 相等 > 不等于
逻辑与 | 逻辑或
~ 逻辑非 xor 逻辑异或

2、基本数学函数
abs 绝对值和复数模长
acos,acodh 反余弦,反双曲余弦
acot,acoth 反余切,反双曲余切
acsc,acsch 反余割,反双曲余割
angle 相角
asec,asech 反正割,反双曲正割
secant 正切
asin,asinh 反正弦,反双曲正弦
atan,atanh 反正切,双曲正切
tangent 正切
atan2 四象限反正切
ceil 向着无穷大舍入
complex 建立一个复数
conj 复数配对
cos,cosh 余弦,双曲余弦
csc,csch 余切,双曲余切
cot,coth 余切,双曲余切
exp 指数
fix 朝0方向取整
floor 朝负无穷取整
*** 最大公因数
imag 复数值的虚部
lcm 最小公倍数
log 自然对数
log2 以2为底的对数
log10 常用对数
mod 有符号的求余

nchoosek 二项式系数和全部组合数
real 复数的实部
rem 相除后求余
round 取整为最近的整数
sec,sech 正割,双曲正割
sign 符号数
sin,sinh 正弦,双曲正弦
sqrt 平方根
tan,tanh 正切,双曲正切
3、基本矩阵和矩阵操作
blkding 从输入参量建立块对角矩阵
eye 单位矩阵
linespace 产生线性间隔的向量
logspace 产生对数间隔的向量
numel 元素个数
ones 产生全为1的数组
rand 均匀颁随机数和数组
randn 正态分布随机数和数组
zeros 建立一个全0矩阵 colon) 等间隔向量
cat 连接数组
diag 对角矩阵和矩阵对角线
fliplr 从左自右翻转矩阵
flipud 从上到下翻转矩阵
repmat 复制一个数组

reshape 改造矩阵
roy90 矩阵翻转90度

tril 矩阵的下三角
triu 矩阵的上三角

dot 向量点集
cross 向量叉集

ismember 检测一个集合的元素
intersect 向量的交集

setxor 向量异或集
setdiff 向是的差集

union 向量的并集
数值分析和傅立叶变换
cumprod 累积

cumsum 累加
cumtrapz 累计梯形法计算数值微分

factor 质因子
inpolygon 删除多边形区域内的点

max 最大值
mean 数组的均值

mediam 中值
min 最小值

perms 所有可能的转换
polyarea 多边形区域

primes 生成质数列表
prod 数组元素的乘积

rectint 矩形交集区域
sort 按升序排列矩阵元素

sortrows 按升序排列行
std 标准偏差

sum 求和
trapz 梯形数值积分

var 方差
del2 离散拉普拉斯

diff 差值和微分估计
gradient 数值梯度

cov 协方差矩阵
corrcoef 相关系数

conv2 二维卷积
conv 卷积和多项式乘法

filter IIR或FIR滤波器
deconv 反卷积和多项式除法

filter2 二维数字滤波器
cplxpair 将复数值分类为共轭对

fft 一维的快速傅立叶变换
fft2 二维快速傅立叶变换

fftshift 将FFT的DC分量移到频谱中心
ifft 一维快速反傅立叶变换

ifft2 二维傅立叶反变换
ifftn 多维快速傅立叶变换

ifftshift 反FFT偏移
nextpow2 最靠近的2的幂次

unwrap 校正相位角


多项式与插值
conv 卷积和多项式乘法

roots 多项式的根
poly 具有设定根的多项式

polyder 多项式微分
polyeig 多项式的特征根

polyfit 多项式拟合
polyint 解析多项式积分

polyval 多项式求值
polyvalm 矩阵变量多项式求值

residue 部分分式展开
interp1 一维插值

interp2 二维插值
interp3 三维插值

interpft 使用FFT的一维插值
interpn 多维插值

meshgrid 为3维点生成x和y的网格
ndgrid 生成多维函数和插值的数组

pchip 分段3次Hermite插值多项式
ppval 分段多项式的值

spline 3次样条数据插值


绘图函数
bar 竖直条图

barh 水平条图
hist 直方图

histc 直方图计数
hold 保持当前图形

loglog x,y对数坐标图
pie 饼状图

plot 绘二维图
polar 极坐标图

semilogy y轴对数坐标图
semilogx x轴对数坐标

subplot 绘制子图
bar3 数值3D竖条图

bar3h 水平3D条形图
comet3 3D慧星图

cylinder 圆柱体
fill3 填充的3D多边形

plot3 3维空间绘图
quiver3 3D震动(速度)图

slice 体积薄片图
sphere 球

stem3 绘制离散表面数据
wate***ll 绘制瀑布

trisurf 三角表面
clabel 增加轮廓标签到等高线图中

datetick 数据格式标记
grid 加网格线

gtext 用鼠标将文本放在2D图中
legend 图注

plotyy 左右边都绘Y轴
title 标题

xlabel X轴标签
ylabel Y轴标签

zlabel Z轴标签
contour 等高线图

contourc 等高线计算
contourf 填充的等高线图

hidden 网格线消影
meshc 连接网格/等高线

mesh 具有参考轴的3D网格
peaks 具有两个变量的采样函数

surf 3D阴影表面图
su***ce 建立表面低层对象

surfc 海浪和等高线的结合
surfl 具有光照的3D阴影表面

trimesh 三角网格图

1 常用指令(General Purpose Commands)1.1 通用信息查询(General information)1.2 工作空间管理(Managing the workspace)1.3 管理指令和函数(Managing commands and functions)1.4 搜索路径的管理(Managing the seach patli)1.5 指令窗控制(Controlling the command window)1.6 操作系统指令(Operating system commands)2 运算符和特殊算符(Operators and special characters)2.1 算术运算符(Arithmetic operators)2.2 关系运算符(Relational operators)2.3 逻辑操作(Logical operators)2.4 特殊算符(Special characters)3 编程语言结构(Programming language constructs)3.1 控制语句(Control flow)3.2 计算运行(Evaluation and execution)3.3 脚本文件、函数及变量(Scripts,function,and variables)3.4 宗量处理(Augument handling)3.5 信息显示(Message display)3.6 交互式输入(Interactive input)4 基本矩阵函数和操作(Elementary matrices and matrix manipulation)4.1 基本矩阵(Elementary matrices)4.2 矩阵基本信息(Basic array information)4.3 矩阵操作(Matrix manipulateion)4.4 特殊变量和常数(Special variables and constants)4.5 特殊矩阵(Specialized matrices)5 基本数学函数(Elementary math functions)5.1 三角函数(Trigonometric)5.2 指数函数(Exponential)5.3 复数函数(Complex)5.4 圆整和求余函数(Rounding and remainder)6 特殊函数(Specialized math functions)7 矩阵函数和数值线性代数(Matrix functions-numerical linear algebra)7.1 矩阵分析(Matrix analysis)7.2 线性方程(Linear equations)7.3 特性值与奇异值(Eigenvalues and singular values)7.4 矩阵函数(Matrix functions)7.5 因式分解(Factorization utility)8 数据分析和傅里叶变换(Date analysis and Fourier transforms)8.1 基本运算(Basic operations)8.2 有限差分(Finite differentces)8.3 相关(Correlation)8.4 滤波和卷积(Filtering and convoluteion)8.5 傅里叶变换(Fourier transforms)9 音频支持(Audio support)9.1 音频硬件驱动(Audio hardware drivers)9.2 音频文件输入输出(Audio file import and export)9.3 工具(Utilities)10 插补多项式函数(Interpolation and polynomials)10.1 数据插补(Data Interpolation)10.2 样条插补(Spline Interpolation)10.3 多项式(Polynomials)11 数值泛函函数和ODE 解算器(Function functions and ODE solvers)11.1 优化和寻根(Optimization and root finding)11.2 优化选项处理(Optimization Option handling)11.3 数值积分(Numerical intergration)11.4 绘图(Plotting)11.5 内联函数对象(Inline function object)11.6 差微分函数解算器(Differential equation solvers)12 二维图形函数(Two dimensional graphs)12.1 基本平面图形(Elementary X-Y graphs)12.2 轴控制(Axis control)12.3 图形注释(Graph annotation)12.4 硬拷贝(Hardcopy and printing)13 三维图形函数(Three dimensional graphs)13.1 基本三维图形(Elementary 3-D plots)13.2 色彩控制(Color control)13.3 光照模式(Lighting)13.4 色图(Color maps)13.5 轴的控制(Axis control)13.6 视角控制(Viewpoint control)13.7 图形注释(Graph annotation)13.8 硬拷贝(Hardcopy and printing)14 特殊图形(Specialized graphs)14.1 特殊平面图形(Specialized 2-D graphs)14.2 等高线及二维半图形(Contour and 2-1/2D graphs)14.3 特殊三维图形(Specialized 3-D graphs)14.4 内剖及向量视图(Volume and vector visualization)14.5 图像显示及文件处理(Image display and file I/O)14.6 影片和动画(Movies and animation)14.7 颜色相关函数(Color related function)14.8 三维模型函数(Solid modeling)15 句柄图形(Handle Graphics)15.1 图形窗的产生和控制(Figure window creation and control)15.2 轴的产生和控制(Axis creation and control)15.3 句柄图形对象(Handle Graphics objects)15.4 句柄图形处理(Handle Graphics operations)15.5 工具函数(Utilities)16 图形用户界面工具(Graphical user interface tools)17 字符串(Character string)17.1 通用字符串函数(General)17.2 字符串查询(String tests)17.3 字符串操作(String operations)18 文件输入/输出(File input/output)19 时间和日期(Time and dates)20 数据类型(Data types and structures)20.1 数据类型(Data types)20.2 多维数组函数(Multi-dimensional array functions)20.3 元胞数组函数(Cell array functions)20.4 构架函数(Structure functions)20.5 函数句柄函数(Function handle functions)20.6 面向对象编程(Object oriented programming functions)21 示例(E xamples and demonstrations)22 符号工具包(Symbolic Math Toolbox)22.1 微积分(Calculus)22.2 线性代数(Linear Algebra)22.3 化简(Simplification)22.4 方程求解(Solution of Equation)22.5 变量精度(Variable Precision Arithmetic)22.6 积分变换(Integral Transforms)22.7 转换(Conversions)22.8 基本操作(Basic Operation)22.9 串处理函数(String handling utilities)22.10 图形应用(Pedagogical and Graphical Applications)22.11 Maple 接口(Access to Maple)23 其它

200多MATLAB经典教程及论文: http://www.elecfans.com/soft/special/matlab/




关键词: matlab    

共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]