MATLAB函数帮助文档.docx

上传人:b****5 文档编号:12177933 上传时间:2023-04-17 格式:DOCX 页数:108 大小:57.53KB
下载 相关 举报
MATLAB函数帮助文档.docx_第1页
第1页 / 共108页
MATLAB函数帮助文档.docx_第2页
第2页 / 共108页
MATLAB函数帮助文档.docx_第3页
第3页 / 共108页
MATLAB函数帮助文档.docx_第4页
第4页 / 共108页
MATLAB函数帮助文档.docx_第5页
第5页 / 共108页
点击查看更多>>
下载资源
资源描述

MATLAB函数帮助文档.docx

《MATLAB函数帮助文档.docx》由会员分享,可在线阅读,更多相关《MATLAB函数帮助文档.docx(108页珍藏版)》请在冰豆网上搜索。

MATLAB函数帮助文档.docx

MATLAB函数帮助文档

MATLAB函数

按类别|按字母顺序排列的列表

语言基础知识

输入命令

ans

最近计算的答案

clc

清除命令窗口

diary

将命令窗口文本保存到文件中

format

设置输出的显示格式

home

发送光标复位

iskeyword

确定输入是否为MATLAB关键字

more

控制命令行窗口分页输出

commandhistory

打开命令历史记录窗口,或在已打开时选择该窗口

commandwindow

打开命令窗口,或在已打开时选择该窗口

矩阵和数组

数组的创建和串联

accumarray

使用累加构造数组

blkdiag

根据输入参数构造分块对角矩阵

diag

对角矩阵和矩阵的对角线

eye

单位矩阵

false

逻辑0(假)

freqspace

频率响应的频率间距

linspace

生成线性间距矢量

logspace

生成对数间距矢量

meshgrid

二维和三维空间中的矩形网格

ndgrid

N维空间中的矩形网格

ones

创建全部为1的数组

rand

Uniformlydistributedpseudorandomnumbers

true

逻辑值1(真)

zeros

创建全零数组

cat

沿指定维度串联数组

horzcat

水平串联数组

vertcat

垂直串联数组

索引

colon

创建矢量、数组下标和for循环迭代

end

终止代码块或指示最大数组索引

ind2sub

线性索引的下标

sub2ind

将下标转换为线性索引

数组维度

length

矢量或最大数组维度的长度

ndims

数组维度数目

numel

数组元素的数目

size

Arraydimensions

height

表格行数

width

表的变量数

iscolumn

确定输入是否为列矢量

isempty

确定数组是否为空

ismatrix

确定输入是否为矩阵

isrow

确定输入是否为行矢量

isscalar

确定输入是否为标量

isvector

确定输入是否为矢量

数组排序和调整

blkdiag

根据输入参数构造分块对角矩阵

circshift

循环偏移数组

ctranspose

复数共轭转置

diag

对角矩阵和矩阵的对角线

flip

翻转元素顺序

flipdim

沿指定维度翻转数组

fliplr

左右翻转矩阵

flipud

上下翻转矩阵

ipermute

N维数组的逆置换维度

permute

重新排列N维数组的维度

repmat

Replicateandtilearray

reshape

Reshapearray

rot90

Rotatematrix90degrees

shiftdim

Shiftdimensions

issorted

确定集元素是否处于排序顺序

sort

Sortarrayelementsinascendingordescendingorder

sortrows

Sortrowsinascendingorder

squeeze

Removesingletondimensions

transpose

转置

vectorize

矢量化表达式

运算符和基本运算

算术运算

plus

加法

uplus

一元加法

minus

减法

uminus

一元减法

times

按元素乘法

rdivide

Rightarraydivision

ldivide

数组左除

power

按元素求幂

mtimes

矩阵乘法

mrdivide

对线性方程组xA=B求解x

mldivide

对线性方程组Ax=B求解x

mpower

矩阵幂

cumprod

累计乘积

cumsum

累积和

diff

差分和近似导数

prod

Productofarrayelements

sum

数组元素总和

ceil

朝正无穷大四舍五入

fix

朝零四舍五入

floor

朝负无穷大四舍五入

idivide

带有舍入选项的整除

mod

除后的模数

rem

Remainderafterdivision

round

Roundtonearestinteger

关系运算

RelationalOperators

关系运算

eq

确定相等性

ge

决定大于或等于

gt

确定大于

le

确定小于等于

lt

确定小于

ne

确定不相等性

isequal

确定数组相等性

isequaln

测试数组相等性,将NaN值视为相等

逻辑运算

LogicalOperators:

Elementwise

对数组执行按元素逻辑运算

LogicalOperators:

Short-circuit

具有短路功能的逻辑运算

and

查找数组或标量输入的逻辑AND

not

计算数组或标量输入的逻辑非

or

查找数组或标量输入的逻辑OR运算

xor

逻辑异OR

all

确定所有的数组元素是为非零还是true

any

确定任何数组元素是否为非零

false

逻辑0(假)

find

查找非零元素的索引和值

islogical

确定输入是否为逻辑数组

logical

将数值转换为逻辑值

true

逻辑值1(真)

集合运算

intersect

设置两个数组的交集

ismember

判断数组元素是否为集数组成员

issorted

确定集元素是否处于排序顺序

setdiff

Setdifferenceoftwoarrays

setxor

SetexclusiveORoftwoarrays

union

设置两个数组的并集

unique

数组中的唯一值

join

通过使用键变量匹配行来合并两个表

innerjoin

两个表之间的内部联接

outerjoin

两张表之间的外连接

按位运算

bitand

按位AND

bitcmp

按位补数

bitget

获取指定位置的位

bitor

按位OR

bitset

设置指定位置的位

bitshift

将位偏移指定位数

bitxor

按位XOR

swapbytes

交换字节顺序

特殊字符

SpecialCharacters

特殊字符

colon

创建矢量、数组下标和for循环迭代

数据类型

数值类型

double

转换为双精度值

single

Converttosingleprecision

int8

转换为8位带符号整数

int16

转换为16位带符号整数

int32

转换为32位带符号整数

int64

转换为64位带符号整数

uint8

转换为8位无符号整数

uint16

转换为16位无符号整数

uint32

转换为32位无符号整数

uint64

转换为64位无符号整数

cast

将变量转换为不同的数据类型

typecast

在不更改基础数据的情况下转换数据类型

isinteger

确定输入是否为整数数组

isfloat

确定输入是否为浮点数组

isnumeric

确定输入是否为数值数组

isreal

检查输入是否为实数数组

isfinite

为有限值的数组元素

isinf

无限的数组元素

isnan

判断查询数组元素是否包含NaN值

eps

浮点相对精度

flintmax

浮点格式的最大连续整数

Inf

无穷大

intmax

指定整数类型的最大值

intmin

指定整数类型的最小值

NaN

非数字

realmax

Largestpositivefloating-pointnumber

realmin

Smallestpositivenormalizedfloating-pointnumber

字符和字符串

创建并串联字符串

blanks

创建空白字符的字符串

cellstr

从字符数组创建字符串元胞数组

char

转换为字符数组(字符串)

iscellstr

确定输入是否为字符串元胞数组

ischar

确定项目是否为字符数组

sprintf

Formatdataintostring

strcat

水平串联字符串

strjoin

将元胞数组中的字符串联接为单个字符串

解析字符串

ischar

确定项目是否为字符数组

isletter

英文字母形式的数组元素

isspace

空格字符形式的数组元素

isstrprop

确定字符串是否为指定类别

sscanf

Readformatteddatafromstring

strfind

在一个字符串内查找另一个字符串

strrep

查找并替换子字符串

strsplit

在指定的分隔符处拆分字符串

strtok

所选的字符串部分

validatestring

检查文本字符串的有效性

symvar

确定表达式中的符号变量

regexp

Matchregularexpression(casesensitive)

regexpi

Matchregularexpression(caseinsensitive)

regexprep

Replacestringusingregularexpression

regexptranslate

Translatestringintoregularexpression

比较字符串

strcmp

比较字符串(区分大小写)

strcmpi

比较字符串(不区分大小写)

strncmp

比较字符串的前n个字符(区分大小写)

strncmpi

比较字符串的前n个字符(不区分大小写)

更改字符串大小写、空格和对齐方式

blanks

创建空白字符的字符串

deblank

剥离字符串的尾随空格

strtrim

删除字符串中的前导和尾随空格

lower

将字符串转换为小写

upper

将字符串转换为大写

strjust

对齐字符数组

分类数组

categorical

创建分类数组

iscategorical

确定输入是否为分类数组

categories

分类数组的类别

iscategory

测试分类数组类别

isordinal

确定输入是否为有序分类数组

isprotected

确定分类数组的类别是否受保护

addcats

将类别添加到类别数组

mergecats

合并分类数组中的类别

removecats

Removecategoriesfromcategoricalarray

renamecats

Renamecategoriesincategoricalarray

reordercats

Reordercategoriesincategoricalarray

summary

输出表或分类数组的摘要

countcats

按类别统计分类数组元素的出现次数

isundefined

查找分类数组中未定义的元素

表格

table

根据工作区变量创建表

array2table

将同构数组转换为表

cell2table

将元胞数组转换为表

struct2table

将结构体数组转换为表

table2array

将表转换为同构数组

table2cell

将表转换为元胞数组

table2struct

将表转换为结构体数组

readtable

Createtablefromfile

writetable

将表写入文件

istable

确定输入是否为表

height

表格行数

width

表的变量数

summary

输出表或分类数组的摘要

intersect

设置两个数组的交集

ismember

判断数组元素是否为集数组成员

setdiff

Setdifferenceoftwoarrays

setxor

SetexclusiveORoftwoarrays

unique

数组中的唯一值

union

设置两个数组的并集

join

通过使用键变量匹配行来合并两个表

innerjoin

两个表之间的内部联接

outerjoin

两张表之间的外连接

sortrows

Sortrowsinascendingorder

stack

Stackdatafrommultiplevariablesintosinglevariable

unstack

将单个变量中的数据退栈到多个变量中

ismissing

查找表元素中的缺失值

standardizeMissing

将缺失值指示符插入表中

varfun

向表变量应用函数

rowfun

Applyfunctiontotablerows

结构体

struct

创建结构体数组

fieldnames

结构体的字段名称或对象的公共字段

getfield

结构体数组字段

isfield

确定输入是否为结构体数组字段

isstruct

确定输入是否为结构体数组

orderfields

结构体数组的顺序字段

rmfield

Removefieldsfromstructure

setfield

Assignvaluestostructurearrayfield

arrayfun

将函数应用于每个数组元素

structfun

对标量结构体的每个字段应用函数

cell2struct

将元胞数组转换为结构体数组

struct2cell

将结构体转换为元胞数组

元胞数组

cell

创建元胞数组

cell2mat

将元胞数组转换为数值数组

cell2struct

将元胞数组转换为结构体数组

celldisp

元胞数组内容

cellfun

对元胞数组中的每个元胞应用函数

cellplot

以图形方式显示元胞数组的结构体

cellstr

从字符数组创建字符串元胞数组

iscell

确定输入是否为元胞数组

iscellstr

确定输入是否为字符串元胞数组

mat2cell

将数组转换为可能具有不同大小的元胞的元胞数组

num2cell

将数组转换为相同大小的元胞数组

strjoin

将元胞数组中的字符串联接为单个字符串

strsplit

在指定的分隔符处拆分字符串

struct2cell

将结构体转换为元胞数组

函数句柄

function_handle(@)

间接调用函数时使用的句柄

feval

计算函数

func2str

从函数句柄构造函数名称字符串

str2func

从函数名称字符串构造函数句柄

localfunctions

MATLAB文件中所有本地函数的函数句柄

functions

关于函数句柄的信息

映射容器

containers.Map

将值映射到唯一键

isKey

确定containers.Map对象是否包含键

keys

确定containers.Map对象的键

remove

Removekey-valuepairsfromcontainers.Mapobject

values

标识containers.Map对象中的值

时序

时序基础知识

append

Concatenatetimeseriesobjectsintimedimension

get

Querytimeseriesobjectpropertyvalues

getdatasamplesize

Sizeofdatasampleintimeseriesobject

getqualitydesc

Dataqualitydescriptions

getsamples

Subsetoftimeseriessamplesusingsubscriptedindexarray

plot

Plottimeseries

set

Setpropertiesoftimeseriesobject

tsdata.event

构造timeseries对象的事件对象

timeseries

Createtimeseriesobject

数据处理

addsample

Adddatasampletotimeseriesobject

ctranspose

Transposetimeseriesobject

delsample

Removesamplefromtimeseriesobject

detrend

Subtractmeanorbest-fitlineandallNaNsfromtimeseriesobject

filter

Shapefrequencycontentoftime-series

getabstime

Extractdate-stringtimevectorintocellarray

getinterpmethod

Interpolationmethodfortimeseriesobject

getsampleusingtime

Extractdatasamplesintonewtimeseriesobject

idealfilter

Applyideal(noncausal)filtertotimeseriesobject

resample

Selectorinterpolatetimeseriesdatausingnewtimevector

setabstime

Settimesoftimeseriesobjectasdatestrings

setinterpmethod

Setdefaultinterpolationmethodfortimeseriesobject

synchronize

Synchronizeandresampletwotimeseriesobjectsusingcommontimevector

transpose

Transposetimeseriesobject

事件数据

addevent

将事件添加到timeseries对象

delevent

将tsdata.event对象从timeseries对象中删除

gettsafteratevent

样本发生在出现事件时或之后的新timeseries对象

gettsafterevent

样本发生在出现事件之后的新timeseries对象

gettsatevent

样本发生在出现事件时的新timeseries对象

gettsbeforeatevent

样本发生在出现事件之前或出现事件时的新timeseries对象

gettsbeforeevent

样本发生在出现事件之前的新timeseries对象

gettsbetweenevents

样本发生在两个事件之间的新timeseries对象

描述性统计

iqr

Interquartilerangeoftimeseriesdata

max

Maximumvalueoftimeseriesdata

mean

Meanvalueoftimeseriesdata

median

Medianvalueoftimeseriesdata

min

Minimumvalueoftimeseriesdata

std

Standarddeviationoftimeseriesdata

sum

Sumoftimeseriesdata

var

Varianceoftimeseriesdata

时序集合

get(tscollection)

查询tscollection对象属性值

isempty(tscollection)

确定tscollection对象是否为空

length(tscollection)

时间矢量的长度

plot

Plottimeseries

set(tscollection)

Setpropertiesoftscollectionobject

size(tscollection)

Sizeoftscollectionobject

tscollection

创建tscollection对象

addsampletocollection

将样本添加到tscollection对象

addts

将timeseries对象添加到tscollection对象中

delsamplefromcollection

将样本从tscollection对象中删除

getabstime(tscollection)

将日期字符串时间矢量提取到元胞数组

getsampleusingtime(tscollection)

将数据样本提取到新tscollection对象

gettimeseriesnames

tscollection对象中timeseries对象的名称的元胞数组

horzcat(tscollection)

水平串联tscollection对象

removets

Removetimeseriesobjectsfromtscollectionobject

resample(tscollection)

Selectorinterpolatedataintscollectionusingnewtimevector

setabstime(tscollection)

Settimesoftscollectionobjectasdatestrings

settimeseriesnames

Changenameoftimeseriesobjectintscollection

vertcat(tscollection)

垂直串联tscollection对象

数据类型标识

is*

检测状态

isa

确定输入是否为指定类的对象

iscategorical

确定输入是否为分类数组

iscell

确定输入是否为元胞数组

iscellstr

确定输入是否为字符串元胞数组

ischar

确定项目是否为字符数组

isfield

确定输入是否为结构体数组字

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1