MATLAB Functions.docx
- 文档编号:9388162
- 上传时间:2023-02-04
- 格式:DOCX
- 页数:96
- 大小:54.39KB
MATLAB Functions.docx
《MATLAB Functions.docx》由会员分享,可在线阅读,更多相关《MATLAB Functions.docx(96页珍藏版)》请在冰豆网上搜索。
MATLABFunctions
Functions
LanguageFundamentals
EnteringCommands
ans
Mostrecentanswer
clc
ClearCommandWindow
diary
SaveCommandWindowtexttofile
format
Setdisplayformatforoutput
home
Sendcursorhome
iskeyword
DeterminewhetherinputisMATLABkeyword
more
ControlpagedoutputforCommandWindow
MatricesandArrays
ArrayCreationandConcatenation
accumarray
Constructarraywithaccumulation
blkdiag
Constructblockdiagonalmatrixfrominputarguments
diag
Getdiagonalelementsorcreatediagonalmatrix
eye
Identitymatrix
false
Logical0(false)
freqspace
Frequencyspacingforfrequencyresponse
linspace
Generatelinearlyspacedvectors
logspace
Generatelogarithmicallyspacedvectors
meshgrid
Rectangulargridin2-Dand3-Dspace
ndgrid
RectangulargridinN-Dspace
ones
Createarrayofallones
rand
Uniformlydistributedpseudorandomnumbers
true
Logical1(true)
zeros
Createarrayofallzeros
cat
Concatenatearraysalongspecifieddimension
horzcat
Concatenatearrayshorizontally
vertcat
Concatenatearraysvertically
Indexing
colon
Createvectors,arraysubscripting,andfor-loopiterators
end
Terminateblockofcode,orindicatelastarrayindex
ind2sub
Subscriptsfromlinearindex
sub2ind
Convertsubscriptstolinearindices
ArrayDimensions
length
Lengthofvectororlargestarraydimension
ndims
Numberofarraydimensions
numel
Numberofarrayelements
size
Arraydimensions
height
Numberoftablerows
width
Numberoftablevariables
iscolumn
Determinewhetherinputiscolumnvector
isempty
Determinewhetherarrayisempty
ismatrix
Determinewhetherinputismatrix
isrow
Determinewhetherinputisrowvector
isscalar
Determinewhetherinputisscalar
isvector
Determinewhetherinputisvector
SortingandReshapingArrays
blkdiag
Constructblockdiagonalmatrixfrominputarguments
circshift
Shiftarraycircularly
ctranspose
Complexconjugatetranspose
diag
Getdiagonalelementsorcreatediagonalmatrix
flip
Fliporderofelements
fliplr
Fliparraylefttoright
flipud
Fliparrayuptodown
ipermute
InversepermutedimensionsofN-Darray
permute
RearrangedimensionsofN-Darray
repmat
Replicateandtilearray
reshape
Reshapearray
rot90
Rotatearray90degrees
shiftdim
Shiftdimensions
issorted
Determinewhethersetelementsareinsortedorder
sort
Sortarrayelements
sortrows
Sortarrayrows
squeeze
Removesingletondimensions
transpose
Transpose
vectorize
Vectorizeexpression
OperatorsandElementaryOperations
Arithmetic
plus
Addition
uplus
Unaryplus
minus
Subtraction
uminus
Unaryminus
times
Element-wisemultiplication
rdivide
Rightarraydivision
ldivide
Leftarraydivision
power
Element-wisepower
mtimes
MatrixMultiplication
mrdivide
SolvesystemsoflinearequationsxA=Bforx
mldivide
SolvesystemsoflinearequationsAx=Bforx
mpower
Matrixpower
cumprod
Cumulativeproduct
cumsum
Cumulativesum
diff
DifferencesandApproximateDerivatives
prod
Productofarrayelements
sum
Sumofarrayelements
ceil
Roundtowardpositiveinfinity
fix
Roundtowardzero
floor
Roundtowardnegativeinfinity
idivide
Integerdivisionwithroundingoption
mod
Modulusafterdivision
rem
Remainderafterdivision
round
Roundtonearestinteger
RelationalOperations
RelationalOperators
Relationaloperations
eq
Determineequality
ge
Determinegreaterthanorequalto
gt
Determinegreaterthan
le
Determinelessthanorequalto
lt
Determinelessthan
ne
Determineinequality
isequal
Determinearrayequality
isequaln
Determinearrayequality,treatingNaNvaluesasequal
LogicalOperations
LogicalOperators:
Short-circuit
Logicaloperationswithshort-circuiting
and
FindlogicalAND
not
FindlogicalNOT
or
FindlogicalOR
xor
Logicalexclusive-OR
all
Determineifallarrayelementsarenonzeroortrue
any
Determineifanyarrayelementsarenonzero
false
Logical0(false)
find
Findindicesandvaluesofnonzeroelements
islogical
Determineifinputislogicalarray
logical
Convertnumericvaluestologicals
true
Logical1(true)
SetOperations
intersect
Setintersectionoftwoarrays
ismember
Arrayelementsthataremembersofsetarray
issorted
Determinewhethersetelementsareinsortedorder
setdiff
Setdifferenceoftwoarrays
setxor
SetexclusiveORoftwoarrays
union
Setunionoftwoarrays
unique
Uniquevaluesinarray
join
Mergetwotablesbymatchinguprowsusingkeyvariables
innerjoin
Innerjoinbetweentwotables
outerjoin
Outerjoinbetweentwotables
Bit-WiseOperations
bitand
Bit-wiseAND
bitcmp
Bit-wisecomplement
bitget
Getbitatspecifiedposition
bitor
Bit-wiseOR
bitset
Setbitatspecificlocation
bitshift
Shiftbitsspecifiednumberofplaces
bitxor
Bit-wiseXOR
swapbytes
Swapbyteordering
SpecialCharacters
SpecialCharacters
Specialcharacters
colon
Createvectors,arraysubscripting,andfor-loopiterators
DataTypes
NumericTypes
double
Converttodoubleprecision
single
Converttosingleprecision
int8
Convertto8-bitsignedinteger
int16
Convertto16-bitsignedinteger
int32
Convertto32-bitsignedinteger
int64
Convertto64-bitsignedinteger
uint8
Convertto8-bitunsignedinteger
uint16
Convertto16-bitunsignedinteger
uint32
Convertto32-bitunsignedinteger
uint64
Convertto64-bitunsignedinteger
cast
Castvariabletodifferentdatatype
typecast
Convertdatatypeswithoutchangingunderlyingdata
isinteger
Determineifinputisintegerarray
isfloat
Determineifinputisfloating-pointarray
isnumeric
Determineifinputisnumericarray
isreal
Determineifarrayisreal
isfinite
Arrayelementsthatarefinite
isinf
Arrayelementsthatareinfinite
isnan
ArrayelementsthatareNaN
eps
Floating-pointrelativeaccuracy
flintmax
Largestconsecutiveintegerinfloating-pointformat
Inf
Infinity
intmax
Largestvalueofspecifiedintegertype
intmin
Smallestvalueofspecifiedintegertype
NaN
Not-a-Number
realmax
Largestpositivefloating-pointnumber
realmin
Smallestpositivenormalizedfloating-pointnumber
CharactersandStrings
CreateandConcatenateStrings
blanks
Createstringofblankcharacters
cellstr
Createcellarrayofstringsfromcharacterarray
char
Converttocharacterarray(string)
iscellstr
Determinewhetherinputiscellarrayofstrings
ischar
Determinewhetheritemischaracterarray
sprintf
Formatdataintostring
strcat
Concatenatestringshorizontally
strjoin
Joinstringsincellarrayintosinglestring
ParseStrings
ischar
Determinewhetheritemischaracterarray
isletter
Arrayelementsthatarealphabeticletters
isspace
Arrayelementsthatarespacecharacters
isstrprop
Determinewhetherstringisofspecifiedcategory
sscanf
Readformatteddatafromstring
strfind
Findonestringwithinanother
strrep
Findandreplacesubstring
strsplit
Splitstringatspecifieddelimiter
strtok
Selectedpartsofstring
validatestring
Checkvalidityoftextstring
symvar
Determinesymbolicvariablesinexpression
regexp
Matchregularexpression(casesensitive)
regexpi
Matchregularexpression(caseinsensitive)
regexprep
Replacestringusingregularexpression
regexptranslate
Translatestringintoregularexpression
CompareStrings
strcmp
Comparestringswithcasesensitivity
strcmpi
Comparestrings(caseinsensitive)
strncmp
Comparefirstncharactersofstrings(casesensitive)
strncmpi
Comparefirstncharactersofstrings(caseinsensitive)
ChangeStringCase,Blanks,andJustification
blanks
Createstringofblankcharacters
deblank
Striptrailingblanksfromendofstring
strtrim
Removeleadingandtrailingwhitespacefromstring
lower
Convertstringtolowercase
upper
Convertstringtouppercase
strjust
Justifycharacterarray
CategoricalArrays
categorical
Createcategoricalarray
iscategorical
Determinewhetherinputiscategoricalarray
categories
Categoriesofcategoricalarray
iscategory
Testforcategoricalarraycategories
isordinal
Determinewhetherinputisordinalcategoricalarray
isprotected
Determinewhethercategoriesofcategoricalarrayareprotected
addcats
Addcategoriestocategoricalarray
mergecats
Mergecategoriesincategoricalarray
removecats
Removecategoriesfromcategoricalarray
renamecats
Renamecategoriesincategoricalarray
reordercats
Reordercategoriesincategoricalarray
summary
Printsummaryoftableorcategoricalarray
countcats
Countoccurrencesofcategoricalarrayelementsbycategory
isundefined
Findundefinedelementsincategoricalarray
Tables
table
Createtablefromworkspacevariables
array2table
Converthomogeneousarraytotable
cell2table
Convertcellarraytotable
struct2table
Convertstructurearraytotable
table2array
Converttabletohomogenousarray
table2cell
Converttabletocellarray
table2struct
Converttabletostructurearray
readtable
Createtablefromfile
writetable
Writetabletofile
istable
Determinewhetherinputistable
height
Numberoftablerows
width
Numberoftablevariables
summary
Printsummaryoftableorcategoricalarray
intersect
Setintersectionoftwoarrays
ismember
Arrayelementsthataremembersofsetarray
setdiff
Setdifferenceoftwoarrays
setxor
SetexclusiveORoftwoarrays
unique
Uniquevaluesinarray
union
Setunionoftwoarrays
join
Mergetwotablesbymatchinguprowsusingkeyvariables
innerjoin
Innerjoinbetweentwotables
outerjoin
Outerjoinbetweentwotables
sortrows
Sortarrayrows
stack
Stackdatafrommultiplevariablesintosinglevariable
unstack
Unstackdatafromsinglevariableintomultipl
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MATLAB Functions
![提示](https://static.bdocx.com/images/bang_tan.gif)