MATLABRaFunctions.docx
- 文档编号:30178158
- 上传时间:2023-08-05
- 格式:DOCX
- 页数:40
- 大小:30.64KB
MATLABRaFunctions.docx
《MATLABRaFunctions.docx》由会员分享,可在线阅读,更多相关《MATLABRaFunctions.docx(40页珍藏版)》请在冰豆网上搜索。
MATLABRaFunctions
MATLABR2013aFunctions
ByCategory
LanguageFundamentals
EnteringCommands
ans
Mostrecentanswer
clc
ClearCommandWindow
diary
SaveCommandWindowtexttofile
format
Setdisplayformatforoutput
home
Sendcursorhome
iskeyword
DeterminewhetherinputisMATLABkeyword
more
ControlpagedoutputforCommandWindow
commandhistory
OpenCommandHistorywindow,orselectitifalreadyopen
commandwindow
OpenCommandWindow,orselectitifalreadyopen
MatricesandArrays
ArrayCreationandConcatenation
accumarray
Constructarraywithaccumulation
blkdiag
Constructblockdiagonalmatrixfrominputarguments
diag
Diagonalmatricesanddiagonalsofmatrix
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
iscolumn
Determinewhetherinputiscolumnvector
isempty
Determinewhetherarrayisempty
ismatrix
Determinewhetherinputismatrix
isrow
Determinewhetherinputisrowvector
isscalar
Determinewhetherinputisscalar
isvector
Determinewhetherinputisvector
SortingandReshapingArrays
blkdiag
Constructblockdiagonalmatrixfrominputarguments
circshift
Shiftarraycircularly
ctranspose
Complexconjugatetranspose
diag
Diagonalmatricesanddiagonalsofmatrix
flipdim
Fliparrayalongspecifieddimension
fliplr
Flipmatrixlefttoright
flipud
Flipmatrixuptodown
ipermute
InversepermutedimensionsofN-Darray
permute
RearrangedimensionsofN-Darray
repmat
Replicateandtilearray
reshape
Reshapearray
rot90
Rotatematrix90degrees
shiftdim
Shiftdimensions
issorted
Determinewhethersetelementsareinsortedorder
sort
Sortarrayelementsinascendingordescendingorder
sortrows
Sortrowsinascendingorder
squeeze
Removesingletondimensions
transpose
Transpose
vectorize
Vectorizeexpression
OperatorsandElementaryOperations
Arithmetic
ArithmeticOperators
Matrixandarrayarithmetic
uplus
Unaryplus
plus
Plus
uminus
Unaryminus
minus
Minus
times
Arraymultiply
mtimes
Matrixmultiplication
rdivide
Rightarraydivision
ldivide
Leftarraydivision
mrdivide
SolvesystemsoflinearequationsxA=Bforx
mldivide
SolvesystemsoflinearequationsAx=Bforx
power
Arraypower
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
Testforequality
ge
Testforgreaterthanorequalto
gt
Testforgreaterthan
le
Testforlessthanorequalto
lt
Testforlessthan
ne
Testforinequality
isequal
Testarraysforequality
isequaln
Testarraysforequality,treatingNaNvaluesasequal
LogicalOperations
LogicalOperators:
Elementwise
Elementwiselogicaloperationsonarrays
LogicalOperators:
Short-circuit
Logicaloperations,withshort-circuitingcapability
and
FindlogicalANDofarrayorscalarinputs
not
FindlogicalNOTofarrayorscalarinput
or
FindlogicalORofarrayorscalarinputs
xor
Logicalexclusive-OR
all
Determineifallarrayelementsarenonzeroortrue
any
Determineifanyarrayelementsarenonzero
false
Logical0(false)
find
Findindicesandvaluesofnonzeroelements
islogical
Determineifinputislogicalarray
logical
Convertnumericvaluestological
true
Logical1(true)
SetOperations
intersect
Setintersectionoftwoarrays
ismember
Arrayelementsthataremembersofsetarray
issorted
Determinewhethersetelementsareinsortedorder
setdiff
Setdifferenceoftwoarrays
setxor
SetexclusiveORoftwoarrays
union
Setunionoftwoarrays
unique
Uniquevaluesinarray
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
Checkifinputisrealarray
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
Comparestrings(casesensitive)
strcmpi
Comparestrings(caseinsensitive)
strncmp
Comparefirstncharactersofstrings(casesensitive)
strncmpi
Comparefirstncharactersofstrings(caseinsensitive)
ChangeStringCase,Blanks,andJustification
blanks
Createstringofblankcharacters
deblank
Striptrailingblanksfromendofstring
strtrim
Removeleadingandtrailingwhitespacefromstring
lower
Convertstringtolowercase
upper
Convertstringtouppercase
strjust
Justifycharacterarray
Structures
struct
Createstructurearray
fieldnames
Fieldnamesofstructure,orpublicfieldsofobject
getfield
Fieldofstructurearray
isfield
Determinewhetherinputisstructurearrayfield
isstruct
Determinewhetherinputisstructurearray
orderfields
Orderfieldsofstructurearray
rmfield
Removefieldsfromstructure
setfield
Assignvaluestostructurearrayfield
arrayfun
Applyfunctiontoeachelementofarray
structfun
Applyfunctiontoeachfieldofscalarstructure
cell2struct
Convertcellarraytostructurearray
struct2cell
Convertstructuretocellarray
CellArrays
cell
Createcellarray
cell2mat
Convertcellarraytonumericarray
cell2struct
Convertcellarraytostructurearray
celldisp
Cellarraycontents
cellfun
Applyfunctiontoeachcellincellarray
cellplot
Graphicallydisplaystructureofcellarray
cellstr
Createcellarrayofstringsfromcharacterarray
iscell
Determinewhetherinputiscellarray
iscellstr
Determinewhetherinputiscellarrayofstrings
mat2cell
Convertarraytocellarraywithpotentiallydifferentsizedcells
num2cell
Convertarraytocellarraywithconsistentlysizedcells
strjoin
Joinstringsincellarrayintosinglestring
strsplit
Splitstringatspecifieddelimiter
struct2cell
Convertstructuretocellarray
FunctionHandles
function_handle(@)
Handleusedincallingfunctionsindirectly
feval
Evaluatefunction
func2str
Constructfunctionnamestringfromfunctionhandle
str2func
Constructfunctionhandlefromfunctionnamestring
functions
Informationaboutfunctionhandle
MapContainers
containers.Map
Mapvaluestouniquekeys
isKey
Determ
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MATLAB Ra Functions