Function Reference


Desktop Tools and Development EnvironmentStartup, Command Window, help, editing and debugging, tuning, other general functions
MathematicsArrays and matrices, linear algebra, other areas of mathematics
Data AnalysisBasic data operations, descriptive statistics, covariance and correlation, filtering and convolution, numerical derivatives and integrals, Fourier transforms, time series analysis
Programming and Data TypesFunction/expression evaluation, program control, function handles, object oriented programming, error handling, operators, data types, dates and times, timers
Object-Oriented ProgrammingFunctions for working with classes and objects
File I/OGeneral and low-level file I/O, plus specific file formats, like audio, spreadsheet, HDF, images
GraphicsLine plots, annotating graphs, specialized plots, images, printing, Handle Graphics
3-D VisualizationSurface and mesh plots, view control, lighting and transparency, volume visualization
GUI DevelopmentGUIDE, programming graphical user interfaces
External InterfacesInterfaces to shared librariess, Java, .NET, COM and ActiveX, Web services, and serial port devices, and C and Fortran routines

Desktop Tools and Development Environment

Startup and ShutdownStartup and shutdown options, preferences
Command Window and HistoryControl Command Window and History, enter statements and run functions
Help for Using MATLABCommand line help, online documentation in the Help browser, demos
Workspace, Search Path, and File OperationsWork with files, MATLAB search path, manage variables
Programming ToolsEdit and debug M-files, improve performance, source control, publish results
SystemIdentify current computer, license, product version, and more

Startup and Shutdown

exitTerminate MATLAB program (same as quit)
finishTermination M-file for MATLAB program
matlab (UNIX)Start MATLAB program (UNIX platforms)
matlab (Windows)Start MATLAB program (Windows platforms)
matlabrcStartup M-file for MATLAB program
prefdirDirectory containing preferences, history, and layout files
preferencesOpen Preferences dialog box
quitTerminate MATLAB program
startupStartup M-file for user-defined options
userpathView or change user portion of search path

Command Window and History

clcClear Command Window
commandhistoryOpen Command History window, or select it if already open
commandwindowOpen Command Window, or select it if already open
diarySave session to file
dosExecute DOS command and return result
formatSet display format for output
homeMove cursor to upper-left corner of Command Window
matlabcolon (matlab:)Run specified function via hyperlink
moreControl paged output for Command Window
perlCall Perl script using appropriate operating system executable
systemExecute operating system command and return result
unixExecute UNIX command and return result

Help for Using MATLAB

builddocsearchdbBuild searchable documentation database
demoAccess product demos via Help browser
docReference page in Help browser
docsearchOpen Help browser and search for specified term
echodemoRun M-file demo step-by-step in Command Window
helpHelp for functions in Command Window
helpbrowserOpen Help browser to access all online documentation and demos
helpwinProvide access to M-file help for all functions
infoInformation about contacting The MathWorks
lookforSearch for keyword in all help entries
playshowRun M-file demo (deprecated; use echodemo instead)
supportOpen MathWorks Technical Support Web page
webOpen Web site or file in Web or Help browser
whatsnewRelease Notes for MathWorks products

Workspace, Search Path, and File Operations

WorkspaceManage variables
Search PathView and change MATLAB search path
File OperationsView and change files and directories

Workspace

assigninAssign value to variable in specified workspace
clearRemove items from workspace, freeing up system memory
evalinExecute MATLAB expression in specified workspace
existCheck existence of variable, function, directory, or Java programming language class
openvarOpen workspace variable in Variable Editor or other graphical editing tool
packConsolidate workspace memory
uiimportOpen Import Wizard to import data
whichLocate functions and files
who, whosList variables in workspace
workspaceOpen Workspace browser to manage workspace

Search Path

addpathAdd directories to search path
genpathGenerate path string
partialpathPartial pathname description
pathView or change search path
path2rcSave current search path to pathdef.m file
pathsepPath separator for current platform
pathtoolOpen Set Path dialog box to view and change search path
restoredefaultpathRestore default search path
rmpathRemove directories from search path
savepathSave current search path
userpathView or change user portion of search path

File Operations

See also File I/O functions.

cdChange working directory
copyfileCopy file or directory
deleteRemove files or graphics objects
dirDirectory listing
existCheck existence of variable, function, directory, or Java programming language class
fileattribSet or get attributes of file or directory
filebrowserOpen Current Directory browser, or select it if already open
isdirDetermine whether input is directory
lookforSearch for keyword in all help entries
lsDirectory contents
matlabrootRoot directory
mkdirMake new directory
movefileMove file or directory
pwdIdentify current directory
recycleSet option to move deleted files to recycle folder
rehashRefresh function and file system path caches
rmdirRemove directory
toolboxdirRoot directory for specified toolbox
typeDisplay contents of file
visdiffCompare two text files, MAT-Files, or binary files
whatList MATLAB files in current directory
whichLocate functions and files

Programming Tools

M-File Editing and DebuggingEdit and debug M-files
M-File PerformanceImprove performance and find potential problems in M-files
Source ControlInterface MATLAB with source control system
PublishingPublish M-file code and results

M-File Editing and Debugging

clipboardCopy and paste strings to and from system clipboard
datatipinfoProduce short description of input variable
dbclearClear breakpoints
dbcontResume execution
dbdownReverse workspace shift performed by dbup, while in debug mode
dbquitQuit debug mode
dbstackFunction call stack
dbstatusList all breakpoints
dbstepExecute one or more lines from current breakpoint
dbstopSet breakpoints
dbtypeList M-file with line numbers
dbupShift current workspace to workspace of caller, while in debug mode
debugList M-file debugging functions
editEdit or create M-file
keyboardInput from keyboard

M-File Performance

benchMATLAB benchmark
mlintCheck M-files for possible problems
mlintrptRun mlint for file or directory, reporting results in browser
packConsolidate workspace memory
profileProfile execution time for function
profsaveSave profile report in HTML format
rehashRefresh function and file system path caches
sparseCreate sparse matrix
zerosCreate array of all zeros

Source Control

checkinCheck files into source control system (UNIX platforms)
checkoutCheck files out of source control system (UNIX platforms)
cmoptsName of source control system
customverctrlAllow custom source control system (UNIX platforms)
undocheckoutUndo previous checkout from source control system (UNIX platforms)
verctrlSource control actions (Windows platforms)

Publishing

grabcodeMATLAB code from M-files published to HTML
notebookOpen M-book in Microsoft Word software (on Microsoft Windows platforms)
publishPublish M-file containing cells, saving output to file of specified type
snapnowForce snapshot of image for inclusion in published document

System

Operating System InterfaceExchange operating system information and commands with MATLAB
MATLAB Version and LicenseInformation about MATLAB version and license

Operating System Interface

clipboardCopy and paste strings to and from system clipboard
computerInformation about computer on which MATLAB software is running
dosExecute DOS command and return result
getenvEnvironment variable
hostidServer host identification number
maxNumCompThreadsControl maximum number of computational threads
perlCall Perl script using appropriate operating system executable
setenvSet environment variable
systemExecute operating system command and return result
unixExecute UNIX command and return result
winqueryregItem from Windows registry

MATLAB Version and License

ismacDetermine if version is for Mac OS X platform
ispcDetermine if version is for Windows (PC) platform
isstudentDetermine if version is Student Version
isunixDetermine if version is for UNIX platform
javachkGenerate error message based on Sun Java feature support
licenseReturn license number or perform licensing task
prefdirDirectory containing preferences, history, and layout files
usejavaDetermine whether Sun Java feature is supported in MATLAB software
verVersion information for MathWorks products
verLessThanCompare toolbox version to specified version string
versionVersion number for MATLAB

Mathematics

Arrays and MatricesBasic array operators and operations, creation of elementary and specialized arrays and matrices
Linear AlgebraMatrix analysis, linear equations, eigenvalues, singular values, logarithms, exponentials, factorization
Elementary MathTrigonometry, exponentials and logarithms, complex values, rounding, remainders, discrete math
PolynomialsMultiplication, division, evaluation, roots, derivatives, integration, eigenvalue problem, curve fitting, partial fraction expansion
Interpolation and Computational GeometryInterpolation, Delaunay triangulation and tessellation, convex hulls, Voronoi diagrams, domain generation
Cartesian Coordinate System ConversionConversions between Cartesian and polar or spherical coordinates
Nonlinear Numerical MethodsDifferential equations, optimization, integration
Specialized MathAiry, Bessel, Jacobi, Legendre, beta, elliptic, error, exponential integral, gamma functions
Sparse MatricesElementary sparse matrices, operations, reordering algorithms, linear algebra, iterative methods, tree operations
Math ConstantsPi, imaginary unit, infinity, Not-a-Number, largest and smallest positive floating point numbers, floating point relative accuracy

Arrays and Matrices

Basic InformationDisplay array contents, get array information, determine array type
OperatorsArithmetic operators
Elementary Matrices and ArraysCreate elementary arrays of different types, generate arrays for plotting, array indexing, etc.
Array OperationsOperate on array content, apply function to each array element, find cumulative product or sum, etc.
Array ManipulationCreate, sort, rotate, permute, reshape, and shift array contents
Specialized MatricesCreate Hadamard, Companion, Hankel, Vandermonde, Pascal matrices, etc.

Basic Information

dispDisplay text or array
displayDisplay text or array (overloaded method)
isemptyDetermine whether array is empty
isequalTest arrays for equality
isequalwithequalnansTest arrays for equality, treating NaNs as equal
isfiniteArray elements that are finite
isfloatDetermine whether input is floating-point array
isinfArray elements that are infinite
isintegerDetermine whether input is integer array
islogicalDetermine whether input is logical array
isnanArray elements that are NaN
isnumericDetermine whether input is numeric array
isscalarDetermine whether input is scalar
issparseDetermine whether input is sparse
isvectorDetermine whether input is vector
lengthLength of vector
maxLargest elements in array
minSmallest elements in array
ndimsNumber of array dimensions
numelNumber of elements in array or subscripted array expression
sizeArray dimensions

Operators

+Addition
+Unary plus
-Subtraction
-Unary minus
*Matrix multiplication
^Matrix power
\Backslash or left matrix divide
/Slash or right matrix divide
'Transpose
.'Nonconjugated transpose
.*Array multiplication (element-wise)
.^Array power (element-wise)
.\Left array divide (element-wise)
./Right array divide (element-wise)

Elementary Matrices and Arrays

blkdiagConstruct block diagonal matrix from input arguments
create (RandStream)Create random number streams
diagDiagonal matrices and diagonals of matrix
eyeIdentity matrix
freqspaceFrequency spacing for frequency response
get (RandStream)Random stream properties
getDefaultStream (RandStream)Default random number stream
ind2subSubscripts from linear index
linspaceGenerate linearly spaced vectors
list (RandStream)Random number generator algorithms
logspaceGenerate logarithmically spaced vectors
meshgridGenerate X and Y arrays for 3-D plots
ndgridGenerate arrays for N-D functions and interpolation
onesCreate array of all ones
randUniformly distributed pseudorandom numbers
rand (RandStream)Uniformly distributed random numbers
randiUniformly distributed pseudorandom integers
randi (RandStream)Uniformly distributed pseudorandom integers
randnNormally distributed pseudorandom numbers
randn (RandStream)Normally distributed pseudorandom numbers
randperm (RandStream)
RandStreamRandom number stream
RandStream (RandStream)Random number stream
set (RandStream)Set random stream property
setDefaultStream (RandStream)Set default random number stream
sub2indSingle index from subscripts
zerosCreate array of all zeros

Array Operations

See Linear Algebra and Elementary Math for other array operations.

accumarrayConstruct array with accumulation
arrayfunApply function to each element of array
bsxfunApply element-by-element binary operation to two arrays with singleton expansion enabled
castCast variable to different data type
crossVector cross product
cumprodCumulative product
cumsumCumulative sum
dotVector dot product
idivideInteger division with rounding option
kronKronecker tensor product
prodProduct of array elements
sumSum of array elements
trilLower triangular part of matrix
triuUpper triangular part of matrix

Array Manipulation

blkdiagConstruct block diagonal matrix from input arguments
catConcatenate arrays along specified dimension
circshiftShift array circularly
diagDiagonal matrices and diagonals of matrix
endTerminate block of code, or indicate last array index
flipdimFlip array along specified dimension
fliplrFlip matrix left to right
flipudFlip matrix up to down
horzcatConcatenate arrays horizontally
inlineConstruct inline object
ipermuteInverse permute dimensions of N-D array
permuteRearrange dimensions of N-D array
repmatReplicate and tile array
reshapeReshape array
rot90Rotate matrix 90 degrees
shiftdimShift dimensions
sortSort array elements in ascending or descending order
sortrowsSort rows in ascending order
squeezeRemove singleton dimensions
vectorizeVectorize expression
vertcatConcatenate arrays vertically

Specialized Matrices

companCompanion matrix
galleryTest matrices
hadamardHadamard matrix
hankelHankel matrix
hilbHilbert matrix
invhilbInverse of Hilbert matrix
magicMagic square
pascalPascal matrix
rosserClassic symmetric eigenvalue test problem
toeplitzToeplitz matrix
vanderVandermonde matrix
wilkinsonWilkinson's eigenvalue test matrix

Linear Algebra

Matrix AnalysisCompute norm, rank, determinant, condition number, etc.
Linear EquationsSolve linear systems, least squares, LU factorization, Cholesky factorization, etc.
Eigenvalues and Singular ValuesEigenvalues, eigenvectors, Schur decomposition, Hessenburg matrices, etc.
Matrix Logarithms and ExponentialsMatrix logarithms, exponentials, square root
FactorizationCholesky, LU, and QR factorizations, diagonal forms, singular value decomposition

Matrix Analysis

condCondition number with respect to inversion
condeigCondition number with respect to eigenvalues
detMatrix determinant
normVector and matrix norms
normest2-norm estimate
nullNull space
orthRange space of matrix
rankRank of matrix
rcondMatrix reciprocal condition number estimate
rrefReduced row echelon form
subspaceAngle between two subspaces
traceSum of diagonal elements

Linear Equations

cholCholesky factorization
cholincSparse incomplete Cholesky and Cholesky-Infinity factorizations
condCondition number with respect to inversion
condest1-norm condition number estimate
funmEvaluate general matrix function
iluSparse incomplete LU factorization
invMatrix inverse
linsolveSolve linear system of equations
lscovLeast-squares solution in presence of known covariance
lsqnonnegSolve nonnegative least-squares constraints problem
luLU matrix factorization
luincSparse incomplete LU factorization
pinvMoore-Penrose pseudoinverse of matrix
qrOrthogonal-triangular decomposition
rcondMatrix reciprocal condition number estimate

Eigenvalues and Singular Values

balanceDiagonal scaling to improve eigenvalue accuracy
cdf2rdfConvert complex diagonal form to real block diagonal form
condeigCondition number with respect to eigenvalues
eigEigenvalues and eigenvectors
eigsLargest eigenvalues and eigenvectors of matrix
gsvdGeneralized singular value decomposition
hessHessenberg form of matrix
ordeigEigenvalues of quasitriangular matrices
ordqzReorder eigenvalues in QZ factorization
ordschurReorder eigenvalues in Schur factorization
polyPolynomial with specified roots
polyeigPolynomial eigenvalue problem
rsf2csfConvert real Schur form to complex Schur form
schurSchur decomposition
sqrtmMatrix square root
ss2tfConvert state-space filter parameters to transfer function form
svdSingular value decomposition
svdsFind singular values and vectors

Matrix Logarithms and Exponentials

expmMatrix exponential
logmMatrix logarithm
sqrtmMatrix square root

Factorization

balanceDiagonal scaling to improve eigenvalue accuracy
cdf2rdfConvert complex diagonal form to real block diagonal form
cholCholesky factorization
cholincSparse incomplete Cholesky and Cholesky-Infinity factorizations
cholupdateRank 1 update to Cholesky factorization
gsvdGeneralized singular value decomposition
iluSparse incomplete LU factorization
luLU matrix factorization
luincSparse incomplete LU factorization
planerotGivens plane rotation
qrOrthogonal-triangular decomposition
qrdeleteRemove column or row from QR factorization
qrinsertInsert column or row into QR factorization
qrupdate
qzQZ factorization for generalized eigenvalues
rsf2csfConvert real Schur form to complex Schur form
svdSingular value decomposition

Elementary Math

TrigonometricTrigonometric functions with results in radians or degrees
ExponentialExponential, logarithm, power, and root functions
ComplexNumbers with real and imaginary components, phase angles
Rounding and RemainderRounding, modulus, and remainder
Discrete MathPrime factors, factorials, permutations, rational fractions, least common multiple, greatest common divisor

Trigonometric

acosInverse cosine; result in radians
acosdInverse cosine; result in degrees
acoshInverse hyperbolic cosine
acotInverse cotangent; result in radians
acotdInverse cotangent; result in degrees
acothInverse hyperbolic cotangent
acscInverse cosecant; result in radians
acscdInverse cosecant; result in degrees
acschInverse hyperbolic cosecant
asecInverse secant; result in radians
asecdInverse secant; result in degrees
asechInverse hyperbolic secant
asinInverse sine; result in radians
asindInverse sine; result in degrees
asinhInverse hyperbolic sine
atanInverse tangent; result in radians
atan2Four-quadrant inverse tangent
atandInverse tangent; result in degrees
atanhInverse hyperbolic tangent
cosCosine of argument in radians
cosdCosine of argument in degrees
coshHyperbolic cosine
cotCotangent of argument in radians
cotdCotangent of argument in degrees
cothHyperbolic cotangent
cscCosecant of argument in radians
cscdCosecant of argument in degrees
cschHyperbolic cosecant
hypotSquare root of sum of squares
secSecant of argument in radians
secdSecant of argument in degrees
sechHyperbolic secant
sinSine of argument in radians
sindSine of argument in degrees
sinhHyperbolic sine of argument in radians
tanTangent of argument in radians
tandTangent of argument in degrees
tanhHyperbolic tangent

Exponential

expExponential
expm1Compute exp(x)-1 accurately for small values of x
logNatural logarithm
log10Common (base 10) logarithm
log1pCompute log(1+x) accurately for small values of x
log2Base 2 logarithm and dissect floating-point numbers into exponent and mantissa
nextpow2Next higher power of 2
nthrootReal nth root of real numbers
pow2Base 2 power and scale floating-point numbers
reallogNatural logarithm for nonnegative real arrays
realpowArray power for real-only output
realsqrtSquare root for nonnegative real arrays
sqrtSquare root

Complex

absAbsolute value and complex magnitude
anglePhase angle
complexConstruct complex data from real and imaginary components
conjComplex conjugate
cplxpairSort complex numbers into complex conjugate pairs
iImaginary unit
imagImaginary part of complex number
isrealCheck if input is real array
jImaginary unit
realReal part of complex number
signSignum function
unwrapCorrect phase angles to produce smoother phase plots

Rounding and Remainder

ceilRound toward positive infinity
fixRound toward zero
floorRound toward negative infinity
idivideInteger division with rounding option
modModulus after division
remRemainder after division
roundRound to nearest integer

Discrete Math

factorPrime factors
factorialFactorial function
gcdGreatest common divisor
isprimeArray elements that are prime numbers
lcmLeast common multiple
nchoosekBinomial coefficient or all combinations
permsAll possible permutations
primesGenerate list of prime numbers
rat, ratsRational fraction approximation

Polynomials

convConvolution and polynomial multiplication
deconvDeconvolution and polynomial division
polyPolynomial with specified roots
polyderPolynomial derivative
polyeigPolynomial eigenvalue problem
polyfitPolynomial curve fitting
polyintIntegrate polynomial analytically
polyvalPolynomial evaluation
polyvalmMatrix polynomial evaluation
residueConvert between partial fraction expansion and polynomial coefficients
rootsPolynomial roots

Interpolation and Computational Geometry

InterpolationData interpolation, data gridding, polynomial evaluation, nearest point search
Delaunay Triangulation and TessellationDelaunay triangulation and tessellation, triangular surface and mesh plots
Convex HullPlot convex hull, plotting functions
Voronoi DiagramsPlot Voronoi diagram, patch graphics object, plotting functions
Domain GenerationGenerate arrays for 3-D plots, or for N-D functions and interpolation

Interpolation

dsearchSearch Delaunay triangulation for nearest point
dsearchnN-D nearest point search
griddataData gridding
griddata3Data gridding and hypersurface fitting for 3-D data
griddatanData gridding and hypersurface fitting (dimension >= 2)
interp11-D data interpolation (table lookup)
interp1qQuick 1-D linear interpolation
interp22-D data interpolation (table lookup)
interp33-D data interpolation (table lookup)
interpft1-D interpolation using FFT method
interpnN-D data interpolation (table lookup)
meshgridGenerate X and Y arrays for 3-D plots
mkppMake piecewise polynomial
ndgridGenerate arrays for N-D functions and interpolation
padecoefPadé approximation of time delays
pchipPiecewise Cubic Hermite Interpolating Polynomial (PCHIP)
ppvalEvaluate piecewise polynomial
splineCubic spline data interpolation
tsearchnN-D closest simplex search
unmkppPiecewise polynomial details

Delaunay Triangulation and Tessellation

baryToCart (TriRep)Converts point coordinates from barycentric to Cartesian
cartToBary (TriRep) Convert point coordinates from cartesian to barycentric
circumcenters (TriRep)Circumcenters of specified simplices
convexHull (DelaunayTri)Convex hull
delaunayDelaunay triangulation
delaunay33-D Delaunay tessellation
delaunaynN-D Delaunay tessellation
DelaunayTriDelaunay triangulation in 2-D and 3-D
DelaunayTriContruct Delaunay triangulation
dsearchSearch Delaunay triangulation for nearest point
dsearchnN-D nearest point search
edgeAttachments (TriRep)Simplices attached to specified edges
edges (TriRep)Triangulation edges
faceNormals (TriRep)Unit normals to specified triangles
featureEdges (TriRep)Sharp edges of surface triangulation
freeBoundary (TriRep)Facets referenced by only one simplex
incenters (TriRep)Incenters of specified simplices
inOutStatus (DelaunayTri)Status of triangles in 2-D constrained Delaunay triangulation
isEdge (TriRep) Test if vertices are joined by edge
nearestNeighbor (DelaunayTri)Point closest to specified location
neighbors (TriRep)Simplex neighbor information
pointLocation (DelaunayTri)Simplex containing specified location
size (TriRep)Size of triangulation matrix
tetrameshTetrahedron mesh plot
trimeshTriangular mesh plot
triplot2-D triangular plot
TriRepTriangulation representation
TriRepTriangulation representation
TriScatteredInterpInterpolate scattered data
TriScatteredInterp
trisurfTriangular surface plot
tsearchSearch for enclosing Delaunay triangle
tsearchnN-D closest simplex search
vertexAttachments (TriRep)Return simplices attached to specified vertices
voronoiDiagram (DelaunayTri)Voronoi diagram

Convex Hull

convhullConvex hull
convhullnN-D convex hull
patchCreate patch graphics object
plot2-D line plot
trisurfTriangular surface plot

Voronoi Diagrams

dsearchSearch Delaunay triangulation for nearest point
patchCreate patch graphics object
plot2-D line plot
voronoiVoronoi diagram
voronoinN-D Voronoi diagram

Domain Generation

meshgridGenerate X and Y arrays for 3-D plots
ndgridGenerate arrays for N-D functions and interpolation

Cartesian Coordinate System Conversion

cart2polTransform Cartesian coordinates to polar or cylindrical
cart2sphTransform Cartesian coordinates to spherical
pol2cartTransform polar or cylindrical coordinates to Cartesian
sph2cartTransform spherical coordinates to Cartesian

Nonlinear Numerical Methods

Ordinary Differential EquationsSolve stiff and nonstiff differential equations, define the problem, set solver options, evaluate solution
Delay Differential EquationsSolve delay differential equations with constant and general delays, set solver options, evaluate solution
Boundary Value ProblemsSolve boundary value problems for ordinary differential equations, set solver options, evaluate solution
Partial Differential EquationsSolve initial-boundary value problems for parabolic-elliptic PDEs, evaluate solution
OptimizationFind minimum of single and multivariable functions, solve nonnegative least-squares constraint problem
Numerical Integration (Quadrature)Evaluate Simpson, Lobatto, and vectorized quadratures, evaluate double and triple integrals

Ordinary Differential Equations

decicCompute consistent initial conditions for ode15i
devalEvaluate solution of differential equation problem
ode15iSolve fully implicit differential equations, variable order method
ode23, ode45, ode113, ode15s, ode23s, ode23t, ode23tbSolve initial value problems for ordinary differential equations
odefileDefine differential equation problem for ordinary differential equation solvers
odegetOrdinary differential equation options parameters
odesetCreate or alter options structure for ordinary differential equation solvers
odextendExtend solution of initial value problem for ordinary differential equation

Delay Differential Equations

dde23Solve delay differential equations (DDEs) with constant delays
ddegetExtract properties from delay differential equations options structure
ddesdSolve delay differential equations (DDEs) with general delays
ddesetCreate or alter delay differential equations options structure
devalEvaluate solution of differential equation problem

Boundary Value Problems

bvp4cSolve boundary value problems for ordinary differential equations
bvp5cSolve boundary value problems for ordinary differential equations
bvpgetExtract properties from options structure created with bvpset
bvpinitForm initial guess for bvp4c
bvpsetCreate or alter options structure of boundary value problem
bvpxtendForm guess structure for extending boundary value solutions
devalEvaluate solution of differential equation problem

Partial Differential Equations

pdepeSolve initial-boundary value problems for parabolic-elliptic PDEs in 1-D
pdevalEvaluate numerical solution of PDE using output of pdepe

Optimization

fminbndFind minimum of single-variable function on fixed interval
fminsearchFind minimum of unconstrained multivariable function using derivative-free method
fzeroFind root of continuous function of one variable
lsqnonnegSolve nonnegative least-squares constraints problem
optimgetOptimization options values
optimsetCreate or edit optimization options structure

Numerical Integration (Quadrature)

dblquadNumerically evaluate double integral over a rectangle
quadNumerically evaluate integral, adaptive Simpson quadrature
quad2dNumerically evaluate double integral over planar region
quadgkNumerically evaluate integral, adaptive Gauss-Kronrod quadrature
quadlNumerically evaluate integral, adaptive Lobatto quadrature
quadvVectorized quadrature
triplequadNumerically evaluate triple integral

Specialized Math

airyAiry functions
besselhBessel function of third kind (Hankel function)
besseliModified Bessel function of first kind
besseljBessel function of first kind
besselkModified Bessel function of second kind
besselyBessel function of second kind
betaBeta function
betaincIncomplete beta function
betaincinvBeta inverse cumulative distribution function
betalnLogarithm of beta function
ellipjJacobi elliptic functions
ellipkeComplete elliptic integrals of first and second kind
erf, erfc, erfcx, erfinv, erfcinvError functions
expintExponential integral
gamma, gammainc, gammalnGamma functions
gammaincinvInverse incomplete gamma function
legendreAssociated Legendre functions
psiPsi (polygamma) function

Sparse Matrices

Elementary Sparse MatricesCreate random and nonrandom sparse matrices
Full to Sparse ConversionConvert full matrix to sparse, sparse matrix to full
Sparse Matrix ManipulationTest matrix for sparseness, get information on sparse matrix, allocate sparse matrix, apply function to nonzero elements, visualize sparsity pattern
Reordering AlgorithmsRandom, column, minimum degree, Dulmage-Mendelsohn, and reverse Cuthill-McKee permutations
Linear AlgebraCompute norms, eigenvalues, factorizations, least squares, structural rank
Linear Equations (Iterative Methods)Methods for conjugate and biconjugate gradients, residuals, lower quartile
Tree OperationsElimination trees, tree plotting, factorization analysis

Elementary Sparse Matrices

spdiagsExtract and create sparse band and diagonal matrices
speyeSparse identity matrix
sprandSparse uniformly distributed random matrix
sprandnSparse normally distributed random matrix
sprandsymSparse symmetric random matrix

Full to Sparse Conversion

findFind indices and values of nonzero elements
fullConvert sparse matrix to full matrix
sparseCreate sparse matrix
spconvertImport matrix from sparse matrix external format

Sparse Matrix Manipulation

issparseDetermine whether input is sparse
nnzNumber of nonzero matrix elements
nonzerosNonzero matrix elements
nzmaxAmount of storage allocated for nonzero matrix elements
spallocAllocate space for sparse matrix
spfunApply function to nonzero sparse matrix elements
sponesReplace nonzero sparse matrix elements with ones
spparmsSet parameters for sparse matrix routines
spyVisualize sparsity pattern

Reordering Algorithms

amdApproximate minimum degree permutation
colamdColumn approximate minimum degree permutation
colpermSparse column permutation based on nonzero count
dmpermDulmage-Mendelsohn decomposition
ldl Block LDL' factorization for Hermitian indefinite matrices
randpermRandom permutation
symamdSymmetric approximate minimum degree permutation
symrcmSparse reverse Cuthill-McKee ordering

Linear Algebra

cholincSparse incomplete Cholesky and Cholesky-Infinity factorizations
condest1-norm condition number estimate
eigsLargest eigenvalues and eigenvectors of matrix
iluSparse incomplete LU factorization
luincSparse incomplete LU factorization
normest2-norm estimate
spaugmentForm least squares augmented system
sprankStructural rank
svdsFind singular values and vectors

Linear Equations (Iterative Methods)

bicgBiconjugate gradients method
bicgstabBiconjugate gradients stabilized method
bicgstablBiconjugate gradients stabilized (l) method
cgsConjugate gradients squared method
gmresGeneralized minimum residual method (with restarts)
lsqrLSQR method
minresMinimum residual method
pcgPreconditioned conjugate gradients method
qmrQuasi-minimal residual method
symmlqSymmetric LQ method
tfqmrTranspose-free quasi-minimal residual method

Tree Operations

etreeElimination tree
etreeplotPlot elimination tree
gplotPlot nodes and links representing adjacency matrix
symbfactSymbolic factorization analysis
treelayoutLay out tree or forest
treeplotPlot picture of tree
unmeshConvert edge matrix to coordinate and Laplacian matrices

Math Constants

epsFloating-point relative accuracy
iImaginary unit
InfInfinity
intmaxLargest value of specified integer type
intminSmallest value of specified integer type
jImaginary unit
NaNNot-a-Number
piRatio of circle's circumference to its diameter, π
realmaxLargest positive floating-point number
realminSmallest positive normalized floating-point number

Data Analysis

Basic OperationsSums, products, sorting
Descriptive StatisticsStatistical summaries of data
Filtering and ConvolutionData preprocessing
Interpolation and RegressionData fitting
Fourier TransformsFrequency content of data
Derivatives and IntegralsData rates and accumulations
Time Series ObjectsMethods for timeseries objects
Time Series CollectionsMethods for tscollection objects

Basic Operations

brushInteractively mark, delete, modify, and save observations in graphs
cumprodCumulative product
cumsumCumulative sum
linkdataAutomatically update graphs when variables change
prodProduct of array elements
sortSort array elements in ascending or descending order
sortrowsSort rows in ascending order
sumSum of array elements

Descriptive Statistics

corrcoefCorrelation coefficients
covCovariance matrix
maxLargest elements in array
meanAverage or mean value of array
medianMedian value of array
minSmallest elements in array
modeMost frequent values in array
stdStandard deviation
varVariance

Filtering and Convolution

convConvolution and polynomial multiplication
conv22-D convolution
convnN-D convolution
deconvDeconvolution and polynomial division
detrendRemove linear trends
filter1-D digital filter
filter22-D digital filter

Interpolation and Regression

interp11-D data interpolation (table lookup)
interp22-D data interpolation (table lookup)
interp33-D data interpolation (table lookup)
interpnN-D data interpolation (table lookup)
mldivide \, mrdivide /Left or right matrix division
polyfitPolynomial curve fitting
polyvalPolynomial evaluation

Fourier Transforms

absAbsolute value and complex magnitude
anglePhase angle
cplxpairSort complex numbers into complex conjugate pairs
fftDiscrete Fourier transform
fft22-D discrete Fourier transform
fftnN-D discrete Fourier transform
fftshiftShift zero-frequency component to center of spectrum
fftwInterface to FFTW library run-time algorithm tuning control
ifftInverse discrete Fourier transform
ifft22-D inverse discrete Fourier transform
ifftnN-D inverse discrete Fourier transform
ifftshiftInverse FFT shift
nextpow2Next higher power of 2
unwrapCorrect phase angles to produce smoother phase plots

Derivatives and Integrals

cumtrapzCumulative trapezoidal numerical integration
del2Discrete Laplacian
diffDifferences and approximate derivatives
gradientNumerical gradient
polyderPolynomial derivative
polyintIntegrate polynomial analytically
trapzTrapezoidal numerical integration

Time Series Objects

UtilitiesCombine timeseries objects, query and set timeseries object properties, plot timeseries objects
Data ManipulationAdd or delete data, manipulate timeseries objects
Event DataAdd or delete events, create new timeseries objects based on event data
Descriptive StatisticsDescriptive statistics for timeseries objects

Utilities

get (timeseries)Query timeseries object property values
getdatasamplesizeSize of data sample in timeseries object
getqualitydescData quality descriptions
isempty (timeseries)Determine whether timeseries object is empty
length (timeseries)Length of time vector
plot (timeseries)Plot time series
set (timeseries)Set properties of timeseries object
size (timeseries)Size of timeseries object
timeseriesCreate timeseries object
tsdata.eventConstruct event object for timeseries object
tspropsHelp on timeseries object properties
tstoolOpen Time Series Tools GUI

Data Manipulation

addsampleAdd data sample to timeseries object
ctranspose (timeseries)Transpose timeseries object
delsampleRemove sample from timeseries object
detrend (timeseries)Subtract mean or best-fit line and all NaNs from time series
filter (timeseries)Shape frequency content of time series
getabstime (timeseries)Extract date-string time vector into cell array
getinterpmethodInterpolation method for timeseries object
getsampleusingtime (timeseries)Extract data samples into new timeseries object
idealfilter (timeseries)Apply ideal (noncausal) filter to timeseries object
resample (timeseries)Select or interpolate timeseries data using new time vector
setabstime (timeseries)Set times of timeseries object as date strings
setinterpmethodSet default interpolation method for timeseries object
synchronizeSynchronize and resample two timeseries objects using common time vector
transpose (timeseries)Transpose timeseries object
vertcat (timeseries)Vertical concatenation of timeseries objects

Event Data

addeventAdd event to timeseries object
deleventRemove tsdata.event objects from timeseries object
gettsafterateventNew timeseries object with samples occurring at or after event
gettsaftereventNew timeseries object with samples occurring after event
gettsateventNew timeseries object with samples occurring at event
gettsbeforeateventNew timeseries object with samples occurring before or at event
gettsbeforeeventNew timeseries object with samples occurring before event
gettsbetweeneventsNew timeseries object with samples occurring between events

Descriptive Statistics

iqr (timeseries)Interquartile range of timeseries data
max (timeseries)Maximum value of timeseries data
mean (timeseries)Mean value of timeseries data
median (timeseries)Median value of timeseries data
min (timeseries)Minimum value of timeseries data
std (timeseries)Standard deviation of timeseries data
sum (timeseries)Sum of timeseries data
var (timeseries)Variance of timeseries data

Time Series Collections

UtilitiesQuery and set tscollection object properties, plot tscollection objects
Data ManipulationAdd or delete data, manipulate tscollection objects

Utilities

get (tscollection)Query tscollection object property values
isempty (tscollection)Determine whether tscollection object is empty
length (tscollection)Length of time vector
plot (timeseries)Plot time series
set (tscollection)Set properties of tscollection object
size (tscollection)Size of tscollection object
tscollectionCreate tscollection object
tstoolOpen Time Series Tools GUI

Data Manipulation

addsampletocollectionAdd sample to tscollection object
addtsAdd timeseries object to tscollection object
delsamplefromcollectionRemove sample from tscollection object
getabstime (tscollection)Extract date-string time vector into cell array
getsampleusingtime (tscollection)Extract data samples into new tscollection object
gettimeseriesnamesCell array of names of timeseries objects in tscollection object
horzcat (tscollection)Horizontal concatenation for tscollection objects
removetsRemove timeseries objects from tscollection object
resample (tscollection)Select or interpolate data in tscollection using new time vector
setabstime (tscollection)Set times of tscollection object as date strings
settimeseriesnamesChange name of timeseries object in tscollection
vertcat (tscollection)Vertical concatenation for tscollection objects

Programming and Data Types

Data TypesNumeric, character, structures, cell arrays, and data type conversion
Data Type ConversionConvert one numeric type to another, numeric to string, string to numeric, structure to cell array, etc.
Operators and Special CharactersArithmetic, relational, and logical operators, and special characters
StringsCreate, identify, manipulate, parse, evaluate, and compare strings
Bit-Wise OperationsPerform set, shift, and, or, compare, etc. on specific bit fields
Logical OperationsEvaluate conditions, testing for true or false
Relational OperationsCompare values for equality, greater than, less than, etc.
Set OperationsFind set members, unions, intersections, etc.
Date and Time OperationsObtain information about dates and times
Programming in MATLABM-files, function/expression evaluation, program control, function handles, object oriented programming, error handling

Data Types

Numeric TypesInteger and floating-point data
Characters and StringsCharacters and arrays of characters
StructuresData of varying types and sizes stored in fields of a structure
Cell ArraysData of varying types and sizes stored in cells of array
Function HandlesInvoke a function indirectly via handle
Java Classes and ObjectsAccess Java classes through MATLAB interface
Data Type IdentificationDetermine data type of a variable

Numeric Types

arrayfunApply function to each element of array
castCast variable to different data type
catConcatenate arrays along specified dimension
classCreate object or return class of object
findFind indices and values of nonzero elements
intmaxLargest value of specified integer type
intminSmallest value of specified integer type
intwarningControl state of integer warnings
ipermuteInverse permute dimensions of N-D array
isaDetermine whether input is object of given class
isequalTest arrays for equality
isequalwithequalnansTest arrays for equality, treating NaNs as equal
isfiniteArray elements that are finite
isinfArray elements that are infinite
isnanArray elements that are NaN
isnumericDetermine whether input is numeric array
isrealCheck if input is real array
isscalarDetermine whether input is scalar
isvectorDetermine whether input is vector
permuteRearrange dimensions of N-D array
realmaxLargest positive floating-point number
realminSmallest positive normalized floating-point number
reshapeReshape array
squeezeRemove singleton dimensions
zerosCreate array of all zeros

Characters and Strings

See Strings for all string-related functions.

cellstrCreate cell array of strings from character array
charConvert to character array (string)
evalExecute string containing MATLAB expression
findstrFind string within another, longer string
isstrDetermine whether input is character array
regexp, regexpiMatch regular expression
sprintfWrite formatted data to string
sscanfRead formatted data from string
strcatConcatenate strings horizontally
strcmp, strcmpiCompare strings
stringsString handling
strjustJustify character array
strmatchFind possible matches for string
strreadRead formatted data from string
strrepFind and replace substring
strtrimRemove leading and trailing white space from string
strvcatConcatenate strings vertically

Structures

arrayfunApply function to each element of array
cell2structConvert cell array to structure array
classCreate object or return class of object
dealDistribute inputs to outputs
fieldnamesField names of structure, or public fields of object
getfieldField of structure array
isaDetermine whether input is object of given class
isequalTest arrays for equality
isfieldDetermine whether input is structure array field
isscalarDetermine whether input is scalar
isstructDetermine whether input is structure array
isvectorDetermine whether input is vector
orderfieldsOrder fields of structure array
rmfieldRemove fields from structure
setfieldSet value of structure array field
structCreate structure array
struct2cellConvert structure to cell array
structfunApply function to each field of scalar structure

Cell Arrays

cellConstruct cell array
cell2matConvert cell array of matrices to single matrix
cell2structConvert cell array to structure array
celldispCell array contents
cellfunApply function to each cell in cell array
cellplotGraphically display structure of cell array
cellstrCreate cell array of strings from character array
classCreate object or return class of object
dealDistribute inputs to outputs
isaDetermine whether input is object of given class
iscellDetermine whether input is cell array
iscellstrDetermine whether input is cell array of strings
isequalTest arrays for equality
isscalarDetermine whether input is scalar
isvectorDetermine whether input is vector
mat2cellDivide matrix into cell array of matrices
num2cellConvert numeric array to cell array
struct2cellConvert structure to cell array

Function Handles

classCreate object or return class of object
fevalEvaluate function
func2strConstruct function name string from function handle
function_handle (@)Handle used in calling functions indirectly
functionsInformation about function handle
isaDetermine whether input is object of given class
isequalTest arrays for equality
str2funcConstruct function handle from function name string

Java Classes and Objects

cellConstruct cell array
classCreate object or return class of object
clearRemove items from workspace, freeing up system memory
depfunList dependencies of M-file or P-file
existCheck existence of variable, function, directory, or Java programming language class
fieldnamesField names of structure, or public fields of object
im2javaConvert image to Java image
importAdd package or class to current import list
inmemNames of M-files, MEX-files, Sun Java classes in memory
isaDetermine whether input is object of given class
isjavaDetermine whether input is Sun Java object
javaaddpathAdd entries to dynamic Sun Java class path
javaArrayConstruct Sun Java array
javachkGenerate error message based on Sun Java feature support
javaclasspathGet and set Sun Java class path
javaMethodCall Sun Java method
javaMethodEDTCall Sun Java method from Event Dispatch Thread (EDT)
javaObjectConstruct Sun Java object
javaObjectEDTConstruct Sun Java object on Event Dispatch Thread (EDT)
javarmpathRemove entries from dynamic Sun Java class path
methodsInformation on class methods
methodsviewInformation on class methods in separate window
usejavaDetermine whether Sun Java feature is supported in MATLAB software
whichLocate functions and files

Data Type Identification

is*Detect state
isaDetermine whether input is object of given class
iscellDetermine whether input is cell array
iscellstrDetermine whether input is cell array of strings
ischarDetermine whether item is character array
isfieldDetermine whether input is structure array field
isfloatDetermine whether input is floating-point array
isintegerDetermine whether input is integer array
isjavaDetermine whether input is Sun Java object
islogicalDetermine whether input is logical array
isnumericDetermine whether input is numeric array
isobjectDetermine if input is MATLAB object
isrealCheck if input is real array
isstrDetermine whether input is character array
isstructDetermine whether input is structure array
validateattributesCheck validity of array
who, whosList variables in workspace

Data Type Conversion

NumericConvert data of one numeric type to another numeric type
String to NumericConvert characters to numeric equivalent
Numeric to StringConvert numeric to character equivalent
Other ConversionsConvert to structure, cell array, function handle, etc.

Numeric

castCast variable to different data type
doubleConvert to double precision
int8, int16, int32, int64Convert to signed integer
singleConvert to single precision
typecastConvert data types without changing underlying data
uint8, uint16, uint32, uint64Convert to unsigned integer

String to Numeric

base2decConvert base N number string to decimal number
bin2decConvert binary number string to decimal number
castCast variable to different data type
hex2decConvert hexadecimal number string to decimal number
hex2numConvert hexadecimal number string to double-precision number
str2doubleConvert string to double-precision value
str2numConvert string to number
unicode2nativeConvert Unicode characters to numeric bytes

Numeric to String

castCast variable to different data type
charConvert to character array (string)
dec2baseConvert decimal to base N number in string
dec2binConvert decimal to binary number in string
dec2hexConvert decimal to hexadecimal number in string
int2strConvert integer to string
mat2strConvert matrix to string
native2unicodeConvert numeric bytes to Unicode characters
num2strConvert number to string

Other Conversions

cell2matConvert cell array of matrices to single matrix
cell2structConvert cell array to structure array
datestrConvert date and time to string format
func2strConstruct function name string from function handle
logicalConvert numeric values to logical
mat2cellDivide matrix into cell array of matrices
num2cellConvert numeric array to cell array
num2hexConvert singles and doubles to IEEE hexadecimal strings
str2funcConstruct function handle from function name string
str2matForm blank-padded character matrix from strings
struct2cellConvert structure to cell array

Operators and Special Characters

Arithmetic OperatorsPlus, minus, power, left and right divide, transpose, etc.
Relational OperatorsEqual to, greater than, less than or equal to, etc.
Logical OperatorsElement-wise and short circuit and, or, not
Special CharactersArray constructors, line continuation, comments, etc.

Arithmetic Operators

+Plus
-Minus
.Decimal point
=Assignment
*Matrix multiplication
/Matrix right division
\Matrix left division
^Matrix power
'Matrix transpose
.*Array multiplication (element-wise)
./Array right division (element-wise)
.\Array left division (element-wise)
.^Array power (element-wise)
.'Array transpose

Relational Operators

<Less than
<=Less than or equal to
>Greater than
>=Greater than or equal to
==Equal to
~=Not equal to

Logical Operators

See also Logical Operations for functions like xor, all, any, etc.

&&Logical AND
||Logical OR
&Logical AND for arrays
|Logical OR for arrays
~Logical NOT

Special Characters

:Create vectors, subscript arrays, specify for-loop iterations
( )Pass function arguments, prioritize operators
[ ]Construct array, concatenate elements, specify multiple outputs from function
{ }Construct cell array, index into cell array
.Insert decimal point, define structure field, reference methods of object
.( )Reference dynamic field of structure
..Reference parent directory
...Continue statement to next line
,Separate rows of array, separate function input/output arguments, separate commands
;Separate columns of array, suppress output from current command
%Insert comment line into code
%{ %}Insert block of comments into code
!Issue command to operating system
' 'Construct character array
@Construct function handle, reference class directory

Strings

Description of Strings in MATLABBasics of string handling in MATLAB
String CreationCreate strings, cell arrays of strings, concatenate strings together
String IdentificationIdentify characteristics of strings
String ManipulationConvert case, strip blanks, replace characters
String ParsingFormatted read, regular expressions, locate substrings
String EvaluationEvaluate stated expression in string
String ComparisonCompare contents of strings

Description of Strings in MATLAB

stringsString handling

String Creation

blanksCreate string of blank characters
cellstrCreate cell array of strings from character array
charConvert to character array (string)
sprintfWrite formatted data to string
strcatConcatenate strings horizontally
strvcatConcatenate strings vertically

String Identification

classCreate object or return class of object
isaDetermine whether input is object of given class
iscellstrDetermine whether input is cell array of strings
ischarDetermine whether item is character array
isletterArray elements that are alphabetic letters
isscalarDetermine whether input is scalar
isspaceArray elements that are space characters
isstrpropDetermine whether string is of specified category
isvectorDetermine whether input is vector
validatestringCheck validity of text string

String Manipulation

deblankStrip trailing blanks from end of string
lowerConvert string to lowercase
strjustJustify character array
strrepFind and replace substring
strtrimRemove leading and trailing white space from string
upperConvert string to uppercase

String Parsing

findstrFind string within another, longer string
regexp, regexpiMatch regular expression
regexprepReplace string using regular expression
regexptranslateTranslate string into regular expression
sscanfRead formatted data from string
strfindFind one string within another
strreadRead formatted data from string
strtokSelected parts of string

String Evaluation

evalExecute string containing MATLAB expression
evalcEvaluate MATLAB expression with capture
evalinExecute MATLAB expression in specified workspace

String Comparison

strcmp, strcmpiCompare strings
strmatchFind possible matches for string
strncmp, strncmpiCompare first n characters of strings

Bit-Wise Operations

bitandBitwise AND
bitcmpBitwise complement
bitgetBit at specified position
bitmaxMaximum double-precision floating-point integer
bitorBitwise OR
bitsetSet bit at specified position
bitshiftShift bits specified number of places
bitxorBitwise XOR
swapbytesSwap byte ordering

Logical Operations

allDetermine whether all array elements are nonzero
andFind logical AND of array or scalar inputs
anyDetermine whether any array elements are nonzero
falseLogical 0 (false)
findFind indices and values of nonzero elements
iskeywordDetermine whether input is MATLAB keyword
isvarnameDetermine whether input is valid variable name
logicalConvert numeric values to logical
notFind logical NOT of array or scalar input
orFind logical OR of array or scalar inputs
trueLogical 1 (true)
xorLogical exclusive-OR


See Operators and Special Characters for logical operators.

Relational Operations

eqTest for equality
geTest for greater than or equal to
gtTest for greater than
leTest for less than or equal to
ltTest for less than
neTest for inequality


See Operators and Special Characters for relational operators.

Set Operations

intersectFind set intersection of two vectors
ismemberArray elements that are members of set
issortedDetermine whether set elements are in sorted order
setdiffFind set difference of two vectors
setxorFind set exclusive OR of two vectors
unionFind set union of two vectors
uniqueFind unique elements of vector

Date and Time Operations

addtodateModify date number by field
calendarCalendar for specified month
clockCurrent time as date vector
cputimeElapsed CPU time
dateCurrent date string
datenumConvert date and time to serial date number
datestrConvert date and time to string format
datevecConvert date and time to vector of components
eomdayLast day of month
etimeTime elapsed between date vectors
nowCurrent date and time
weekdayDay of week

Programming in MATLAB

M-Files and ScriptsDeclare functions, handle arguments, identify dependencies, etc.
EvaluationEvaluate expression in string, apply function to array, run script file, etc.
TimerSchedule execution of MATLAB commands
Variables and Functions in MemoryList files in memory, clear M-files in memory, assign to variable in nondefault workspace, refresh caches
Control Flowif-then-else, for loops, switch-case, try-catch
Error HandlingGenerate warnings and errors, test for and catch errors, retrieve most recent error message
MEX ProgrammingCompile MEX function from C or Fortran code, list MEX-files in memory, debug MEX-files

M-Files and Scripts

addOptional (inputParser)Add optional argument to inputParser schema
addParamValue (inputParser)Add parameter-value argument to inputParser schema
addRequired (inputParser)Add required argument to inputParser schema
createCopy (inputParser)Create copy of inputParser object
depdirList dependent directories of M-file or P-file
depfunList dependencies of M-file or P-file
echoEcho M-files during execution
endTerminate block of code, or indicate last array index
functionDeclare M-file function
inputRequest user input
inputnameVariable name of function input
inputParserConstruct input parser object
mfilenameName of currently running M-file
namelengthmaxMaximum identifier length
nargchkValidate number of input arguments
nargin, nargoutNumber of function arguments
nargoutchkValidate number of output arguments
parse (inputParser)Parse and validate named inputs
pcodeCreate protected M-file (P-file)
scriptScript M-file description
syntaxTwo ways to call MATLAB functions
vararginVariable length input argument list
varargoutVariable length output argument list

Evaluation

ansMost recent answer
arrayfunApply function to each element of array
assertGenerate error when condition is violated
builtinExecute built-in function from overloaded method
cellfunApply function to each cell in cell array
echoEcho M-files during execution
evalExecute string containing MATLAB expression
evalcEvaluate MATLAB expression with capture
evalinExecute MATLAB expression in specified workspace
fevalEvaluate function
iskeywordDetermine whether input is MATLAB keyword
isvarnameDetermine whether input is valid variable name
pauseHalt execution temporarily
runRun script that is not on current path
scriptScript M-file description
structfunApply function to each field of scalar structure
symvarDetermine symbolic variables in expression
tic, tocMeasure performance using stopwatch timer

Timer

delete (timer)Remove timer object from memory
disp (timer)Information about timer object
get (timer)Timer object properties
isvalid (timer)Determine whether timer object is valid
set (timer)Configure or display timer object properties
startStart timer(s) running
startatStart timer(s) running at specified time
stopStop timer(s)
timerConstruct timer object
timerfindFind timer objects
timerfindallFind timer objects, including invisible objects
waitWait until timer stops running

Variables and Functions in Memory

ansMost recent answer
assigninAssign value to variable in specified workspace
datatipinfoProduce short description of input variable
genvarnameConstruct valid variable name from string
globalDeclare global variables
inmemNames of M-files, MEX-files, Sun Java classes in memory
isglobalDetermine whether input is global variable
memoryDisplay memory information
mislockedDetermine whether M-file or MEX-file cannot be cleared from memory
mlockPrevent clearing M-file or MEX-file from memory
munlockAllow clearing M-file or MEX-file from memory
namelengthmaxMaximum identifier length
packConsolidate workspace memory
persistentDefine persistent variable
rehashRefresh function and file system path caches

Control Flow

breakTerminate execution of for or while loop
caseExecute block of code if condition is true
catchSpecify how to respond to error in try statement
continuePass control to next iteration of for or while loop
elseExecute statements if condition is false
elseifExecute statements if additional condition is true
endTerminate block of code, or indicate last array index
errorDisplay message and abort function
forExecute block of code specified number of times
ifExecute statements if condition is true
otherwiseDefault part of switch statement
parforParallel for-loop
returnReturn to invoking function
switchSwitch among several cases, based on expression
tryAttempt to execute block of code, and catch errors
whileRepeatedly execute statements while condition is true

Error Handling

addCause (MException)Append MException objects
assertGenerate error when condition is violated
catchSpecify how to respond to error in try statement
disp (MException)Display MException object
eq (MException)Compare MException objects for equality
errorDisplay message and abort function
ferrorQuery MATLAB software about errors in file input or output
getReport (MException)Get error message for exception
intwarningControl state of integer warnings
isequal (MException)Compare MException objects for equality
last (MException)Last uncaught exception
lasterrLast error message
lasterrorLast error message and related information
lastwarnLast warning message
MExceptionConstruct MException object
ne (MException)Compare MException objects for inequality
rethrowReissue error
rethrow (MException)Reissue existing exception
throw (MException)Terminate function and issue exception
tryAttempt to execute block of code, and catch errors
warningWarning message

MEX Programming

dbmexEnable MEX-file debugging (on UNIX platforms)
inmemNames of M-files, MEX-files, Sun Java classes in memory
mexCompile MEX-function from C/ C++ or Fortran source code
mex.getCompilerConfigurationsGet compiler configuration information for building MEX-files
mexextBinary MEX-file name extension

Object-Oriented Programming

Classes and ObjectsGet information about classes and objects
Handle ClassesDefine and use handle classes
Events and ListenersDefine and use events and listeners
Meta-ClassesAccess information about classes without requiring instances

Classes and Objects

classCreate object or return class of object
classdefClass definition key words
fieldnamesField names of structure, or public fields of object
importAdd package or class to current import list
inferiortoSpecify inferior class relationship
isaDetermine whether input is object of given class
isobjectDetermine if input is MATLAB object
loadobjModify how load function loads objects
methodsInformation on class methods
methodsviewInformation on class methods in separate window
propertiesDisplay class property names
saveobjModify how save function saves objects
subsasgnSubscripted assignment for objects
subsindexSubscripted indexing using object as index
subsrefSubscripted reference for objects
substructCreate structure argument for subsasgn or subsref
superiortoEstablish superior class relationship

Handle Classes

addlistener (handle)Create event listener
addprop (dynamicprops)Add dynamic property
delete (handle)Handle object destructor function
dynamicpropsAbstract class used to derive handle class with dynamic properties
findobj (handle)Find objects matching specified conditions
findprop (handle)Find meta.property object associated with property name
get (hgsetget)Query property values of handle objects derived from hgsetget class
getdisp (hgsetget)Override to change command window display
handleAbstract class for deriving handle classes
hgsetgetAbstract class used to derive handle class with set and get methods
isvalid (handle)Is object valid handle class object
notify (handle)Notify listeners that event is occurring
relationaloperators (handle)Equality and sorting of handle objects
set (hgsetget)Assign property values to handle objects derived from hgsetget class
setdisp (hgsetget)Override to change command window display

Events and Listeners

addlistener (handle)Create event listener
event.EventDataBase class for all data objects passed to event listeners
event.listenerClass defining listener objects
event.PropertyEventListener for property events
event.proplistenerDefine listener object for property events
events Display class event names
notify (handle)Notify listeners that event is occurring

Meta-Classes

meta.classmeta.class class describes MATLAB classes
meta.class.fromNameReturn meta.class object associated with named class
meta.DynamicPropertymeta.DynamicProperty class describes dynamic property of MATLAB object
meta.eventmeta.event class describes MATLAB class events
meta.methodmeta.method class describes MATLAB class methods
meta.packagemeta.package class describes MATLAB packages
meta.package.fromNameReturn meta.package object for specified package
meta.package.getAllPackagesGet all top-level packages
meta.propertymeta.property class describes MATLAB class properties
metaclassReturn meta.class object

File I/O

File Name ConstructionGet path, directory, filename information; construct filenames
File Opening, Loading, and SavingOpen files; transfer data between files and MATLAB workspace
Memory MappingAccess file data via memory map using MATLAB array indexing
Low-Level File I/OLow-level operations that use a file identifier
Text FilesDelimited or formatted I/O to text files
XML DocumentsDocuments written in Extensible Markup Language
SpreadsheetsExcel and Lotus 1-2-3 files
Scientific DataCDF, FITS, HDF formats
Audio and Audio/VideoGeneral audio functions; SparcStation, WAVE, AVI files
ImagesGraphics files
Internet ExchangeURL, FTP, zip, tar, and e-mail


To see a listing of file formats that are readable from MATLAB, go to file formats.

File Name Construction

filemarkerCharacter to separate file name and internal function name
filepartsParts of file name and path
filesepDirectory separator for current platform
fullfileBuild full filename from parts
tempdirName of system's temporary directory
tempnameUnique name for temporary file

File Opening, Loading, and Saving

daqreadRead Data Acquisition Toolbox (.daq) file
importdataLoad data from disk file
loadLoad workspace variables from disk
openOpen files based on extension
saveSave workspace variables to disk
uiimportOpen Import Wizard to import data
winopenOpen file in appropriate application (Windows)

Memory Mapping

disp (memmapfile)Information about memmapfile object
get (memmapfile)Memmapfile object properties
memmapfileConstruct memmapfile object

Low-Level File I/O

fcloseClose one or more open files
feofTest for end-of-file
ferrorQuery MATLAB software about errors in file input or output
fgetlRead line from file, discarding newline characters
fgetsRead line from file, keeping newline characters
fopenOpen file, or obtain information about open files
fprintfWrite formatted data to file
freadRead binary data from file
frewindMove file position indicator to beginning of open file
fscanfRead formatted data from a text file
fseekSet file position indicator
ftellFile position indicator
fwriteWrite binary data to file

Text Files

csvreadRead comma-separated value file
csvwriteWrite comma-separated value file
dlmreadRead ASCII-delimited file of numeric data into matrix
dlmwriteWrite matrix to ASCII-delimited file
filereadReturn contents of file as string vector
textreadRead data from text file; write to multiple outputs
textscanRead formatted data from text file or string

XML Documents

xmlreadParse XML document and return Document Object Model node
xmlwriteSerialize XML Document Object Model node
xsltTransform XML document using XSLT engine

Spreadsheets

Microsoft ExcelRead and write Microsoft Excel spreadsheet
Lotus 1-2-3Read and write Lotus WK1 spreadsheet

Microsoft Excel

xlsfinfoDetermine whether file contains a Microsoft Excel spreadsheet
xlsreadRead Microsoft Excel spreadsheet file
xlswriteWrite Microsoft Excel spreadsheet file

Lotus 1-2-3

wk1finfoDetermine whether file contains 1-2-3 WK1 worksheet
wk1readRead Lotus 1-2-3 WK1 spreadsheet file into matrix
wk1writeWrite matrix to Lotus 1-2-3 WK1 spreadsheet file

Scientific Data

Common Data FormatWork with CDF files
Network Common Data FormWork with netCDF files
Flexible Image Transport SystemWork with FITS files
Hierarchical Data FormatWork with HDF files
Band-Interleaved DataWork with band-interleaved files

Common Data Format

cdfepochConstruct cdfepoch object for Common Data Format (CDF) export
cdfinfoInformation about Common Data Format (CDF) file
cdfreadRead data from Common Data Format (CDF) file
cdfwriteWrite data to Common Data Format (CDF) file
todatenumConvert CDF epoch object to MATLAB datenum

Network Common Data Form

File Operations

netcdfSummary of MATLAB Network Common Data Form (netCDF) capabilities
netcdf.abortRevert recent netCDF file definitions
netcdf.closeClose netCDF file
netcdf.createCreate new netCDF dataset
netcdf.endDefEnd netCDF file define mode
netcdf.getConstantReturn numeric value of named constant
netcdf.getConstantNamesReturn list of constants known to netCDF library
netcdf.inq Return information about netCDF file
netcdf.inqLibVersReturn netCDF library version information
netcdf.openOpen netCDF file
netcdf.reDefPut open netCDF file into define mode
netcdf.setDefaultFormatChange default netCDF file format
netcdf.setFillSet netCDF fill mode
netcdf.syncSynchronize netCDF file to disk

Dimensions

netcdf.defDimCreate netCDF dimension
netcdf.inqDimReturn netCDF dimension name and length
netcdf.inqDimIDReturn dimension ID
netcdf.renameDimChange name of netCDF dimension

Variables

netcdf.defVarCreate netCDF variable
netcdf.getVarReturn data from netCDF variable
netcdf.inqVarReturn information about variable
netcdf.inqVarIDReturn ID associated with variable name
netcdf.putVarWrite data to netCDF variable
netcdf.renameVarChange name of netCDF variable

Attributes

netcdf.copyAttCopy attribute to new location
netcdf.delAttDelete netCDF attribute
netcdf.getAttReturn netCDF attribute
netcdf.inqAttReturn information about netCDF attribute
netcdf.inqAttIDReturn ID of netCDF attribute
netcdf.inqAttNameReturn name of netCDF attribute
netcdf.putAttWrite netCDF attribute
netcdf.renameAttChange name of attribute

Flexible Image Transport System

fitsinfoInformation about FITS file
fitsreadRead data from FITS file

Hierarchical Data Format

hdfSummary of MATLAB HDF4 capabilities
hdf5Summary of MATLAB HDF5 capabilities
hdf5infoInformation about HDF5 file
hdf5readRead HDF5 file
hdf5writeWrite data to file in HDF5 format
hdfinfoInformation about HDF4 or HDF-EOS file
hdfreadRead data from HDF4 or HDF-EOS file
hdftoolBrowse and import data from HDF4 or HDF-EOS files

Band-Interleaved Data

multibandreadRead band-interleaved data from binary file
multibandwriteWrite band-interleaved data to file

Audio and Audio/Video

UtilitiesCreate audio player object, obtain information about multimedia files, convert to/from audio signal
SPARCstation-Specific SoundAccess NeXT/SUN (.au) sound files
Microsoft WAVE SoundAccess Microsoft WAVE (.wav) sound files
Audio/Video InterleavedAccess Audio/Video interleaved (.avi) sound files

Utilities

audiodevinfoInformation about audio device
audioplayerCreate audioplayer object
audiorecorderCreate audiorecorder object
beepProduce beep sound
lin2muConvert linear audio signal to mu-law
mmfileinfoInformation about multimedia file
mmreaderCreate multimedia reader object for reading video files
mmreader.isPlatformSupportedDetermine whether mmreader function is available on current platform
mu2linConvert mu-law audio signal to linear
readRead video frame data from multimedia reader object
soundConvert vector into sound
soundscScale data and play as sound

SPARCstation-Specific Sound

aufinfoInformation about NeXT/SUN (.au) sound file
aureadRead NeXT/SUN (.au) sound file
auwriteWrite NeXT/SUN (.au) sound file

Microsoft WAVE Sound

wavfinfoInformation about Microsoft WAVE (.wav) sound file
wavplayPlay recorded sound on PC-based audio output device
wavreadRead Microsoft WAVE (.wav) sound file
wavrecordRecord sound using PC-based audio input device
wavwriteWrite Microsoft WAVE (.wav) sound file

Audio/Video Interleaved

addframeAdd frame to Audio/Video Interleaved (AVI) file
avifileCreate new Audio/Video Interleaved (AVI) file
aviinfoInformation about Audio/Video Interleaved (AVI) file
avireadRead Audio/Video Interleaved (AVI) file
close (avifile)Close Audio/Video Interleaved (AVI) file
movie2aviCreate Audio/Video Interleaved (AVI) movie from MATLAB movie

Images

exifreadRead EXIF information from JPEG and TIFF image files
im2javaConvert image to Java image
imfinfoInformation about graphics file
imreadRead image from graphics file
imwriteWrite image to graphics file

Internet Exchange

URL, Zip, Tar, E-MailSend e-mail, read from given URL, extract from tar or zip file, compress and decompress files
FTPConnect to FTP server, download from server, manage FTP files, close server connection

URL, Zip, Tar, E-Mail

gunzipUncompress GNU zip files
gzipCompress files into GNU zip files
sendmailSend e-mail message to address list
tarCompress files into tar file
untarExtract contents of tar file
unzipExtract contents of zip file
urlreadRead content at URL
urlwriteSave contents of URL to file
zipCompress files into zip file

FTP

asciiSet FTP transfer type to ASCII
binarySet FTP transfer type to binary
cd (ftp)Change current directory on FTP server
close (ftp)Close connection to FTP server
delete (ftp)Remove file on FTP server
dir (ftp)Directory contents on FTP server
ftpConnect to FTP server, creating FTP object
mgetDownload file from FTP server
mkdir (ftp)Create new directory on FTP server
mputUpload file or directory to FTP server
renameRename file on FTP server
rmdir (ftp)Remove directory on FTP server

Graphics

Basic Plots and GraphsLinear line plots, log and semilog plots
Plotting ToolsGUIs for interacting with plots
Annotating PlotsFunctions for and properties of titles, axes labels, legends, mathematical symbols
Specialized PlottingBar graphs, histograms, pie charts, contour plots, function plotters
Bit-Mapped ImagesDisplay image object, read and write graphics file, convert to movie frames
PrintingPrinting and exporting figures to standard formats
Handle GraphicsCreating graphics objects, setting properties, finding handles

Basic Plots and Graphs

boxAxes border
errorbarPlot error bars along curve
hold Retain current graph in figure
LineSpec (Line Specification)Line specification string syntax
loglog Log-log scale plot
plot2-D line plot
plot33-D line plot
plotyy2-D line plots with y-axes on both left and right side
polarPolar coordinate plot
semilogx, semilogy Semilogarithmic plots
subplotCreate axes in tiled positions

Plotting Tools

figurepaletteShow or hide figure palette
panPan view of graph interactively
plotbrowserShow or hide figure plot browser
ploteditInteractively edit and annotate plots
plottoolsShow or hide plot tools
propertyeditorShow or hide property editor
rotate3d Rotate 3-D view using mouse
showplottoolShow or hide figure plot tool
zoomTurn zooming on or off or magnify by factor

Annotating Plots

annotationCreate annotation objects
clabelContour plot elevation labels
datacursormodeEnable or disable interactive data cursor mode
datetickDate formatted tick labels
gtextMouse placement of text in 2-D view
legend Graph legend for lines and patches
lineCreate line object
rectangleCreate 2-D rectangle object
texlabelProduce TeX format from character string
titleAdd title to current axes
xlabel, ylabel, zlabelLabel x-, y-, and z-axis

Specialized Plotting

Area, Bar, and Pie Plots1-D, 2-D, and 3-D graphs and charts
Contour PlotsUnfilled and filled contours in 2-D and 3-D
Direction and Velocity PlotsComet, compass, feather and quiver plots
Discrete Data PlotsStair, step, and stem plots
Function PlotsEasy-to-use plotting utilities for graphing functions
HistogramsPlots for showing distributions of data
Polygons and SurfacesFunctions to generate and plot surface patches in two or more dimensions
Scatter/Bubble PlotsPlots of point distributions
AnimationFunctions to create and play movies of plots

Area, Bar, and Pie Plots

areaFilled area 2-D plot
bar, barhPlot bar graph (vertical and horizontal)
bar3, bar3hPlot 3-D bar chart
paretoPareto chart
piePie chart
pie33-D pie chart

Contour Plots

contourContour plot of matrix
contour3 3-D contour plot
contourcLow-level contour plot computation
contourfFilled 2-D contour plot
ezcontourEasy-to-use contour plotter
ezcontourfEasy-to-use filled contour plotter

Direction and Velocity Plots

comet2-D comet plot
comet33-D comet plot
compass Plot arrows emanating from origin
featherPlot velocity vectors
quiverQuiver or velocity plot
quiver33-D quiver or velocity plot

Discrete Data Plots

stairsStairstep graph
stemPlot discrete sequence data
stem3Plot 3-D discrete sequence data

Function Plots

ezcontourEasy-to-use contour plotter
ezcontourfEasy-to-use filled contour plotter
ezmeshEasy-to-use 3-D mesh plotter
ezmeshcEasy-to-use combination mesh/contour plotter
ezplotEasy-to-use function plotter
ezplot3Easy-to-use 3-D parametric curve plotter
ezpolarEasy-to-use polar coordinate plotter
ezsurfEasy-to-use 3-D colored surface plotter
ezsurfcEasy-to-use combination surface/contour plotter
fplotPlot function between specified limits

Histograms

histHistogram plot
histcHistogram count
roseAngle histogram plot

Polygons and Surfaces

convhullConvex hull
cylinderGenerate cylinder
delaunayDelaunay triangulation
delaunay33-D Delaunay tessellation
delaunaynN-D Delaunay tessellation
dsearchSearch Delaunay triangulation for nearest point
dsearchnN-D nearest point search
ellipsoidGenerate ellipsoid
fillFilled 2-D polygons
fill3Filled 3-D polygons
inpolygonPoints inside polygonal region
pcolor Pseudocolor (checkerboard) plot
polyareaArea of polygon
rectintRectangle intersection area
ribbonRibbon plot
sliceVolumetric slice plot
sphereGenerate sphere
tsearchSearch for enclosing Delaunay triangle
tsearchnN-D closest simplex search
voronoiVoronoi diagram
waterfallWaterfall plot

Scatter/Bubble Plots

plotmatrixScatter plot matrix
scatterScatter plot
scatter33-D scatter plot

Animation

frame2imReturn image data associated with movie frame
getframeCapture movie frame
im2frameConvert image to movie frame
movie Play recorded movie frames
noanimateChange EraseMode of all objects to normal

Bit-Mapped Images

frame2imReturn image data associated with movie frame
im2frameConvert image to movie frame
im2javaConvert image to Java image
imageDisplay image object
imagescScale data and display image object
imfinfoInformation about graphics file
imformatsManage image file format registry
imreadRead image from graphics file
imwriteWrite image to graphics file
ind2rgbConvert indexed image to RGB image

Printing

hgexportExport figure
orientHardcopy paper orientation
print, printoptPrint figure or save to file and configure printer defaults
printdlgPrint dialog box
printpreviewPreview figure to print
saveasSave figure or Simulink block diagram using specified format

Handle Graphics

Graphics Object IdentificationFind and manipulate graphics objects via their handles
Object CreationConstructors for core graphics objects
Plot ObjectsProperty descriptions for plot objects
Figure WindowsControl and save figures
Axes OperationsOperate on axes objects
Object Property OperationsQuery, set, and link object properties

Graphics Object Identification

allchildFind all children of specified objects
ancestorAncestor of graphics object
copyobjCopy graphics objects and their descendants
deleteRemove files or graphics objects
findallFind all graphics objects
findfigsFind visible offscreen figures
findobjLocate graphics objects with specific properties
gcaCurrent axes handle
gcbfHandle of figure containing object whose callback is executing
gcboHandle of object whose callback is executing
gcoHandle of current object
getQuery Handle Graphics object properties
ishandleDetermine whether input is valid Handle Graphics handle
propeditOpen Property Editor
setSet Handle Graphics object properties

Object Creation

axesCreate axes graphics object
figureCreate figure graphics object
hggroupCreate hggroup object
hgtransformCreate hgtransform graphics object
imageDisplay image object
lightCreate light object
lineCreate line object
patchCreate patch graphics object
rectangleCreate 2-D rectangle object
root objectRoot
surfaceCreate surface object
textCreate text object in current axes
uicontextmenuCreate context menu

Plot Objects

Annotation Arrow PropertiesDefine annotation arrow properties
Annotation Doublearrow PropertiesDefine annotation doublearrow properties
Annotation Ellipse PropertiesDefine annotation ellipse properties
Annotation Line PropertiesDefine annotation line properties
Annotation Rectangle PropertiesDefine annotation rectangle properties
Annotation Textarrow PropertiesDefine annotation textarrow properties
Annotation Textbox PropertiesDefine annotation textbox properties
Areaseries PropertiesDefine areaseries properties
Barseries PropertiesDefine barseries properties
Contourgroup PropertiesDefine contourgroup properties
Errorbarseries PropertiesDefine errorbarseries properties
Image PropertiesDefine image properties
Lineseries PropertiesDefine lineseries properties
Quivergroup PropertiesDefine quivergroup properties
Scattergroup PropertiesDefine scattergroup properties
Stairseries PropertiesDefine stairseries properties
Stemseries PropertiesDefine stemseries properties
Surfaceplot PropertiesDefine surfaceplot properties

Figure Windows

clfClear current figure window
closeRemove specified figure
closereqDefault figure close request function
drawnowFlush event queue and update figure window
gcfCurrent figure handle
hgloadLoad Handle Graphics object hierarchy from file
hgsaveSave Handle Graphics object hierarchy to file
newplotDetermine where to draw graphics objects
openglControl OpenGL rendering
refreshRedraw current figure
saveasSave figure or Simulink block diagram using specified format

Axes Operations

axisAxis scaling and appearance
boxAxes border
claClear current axes
gcaCurrent axes handle
gridGrid lines for 2-D and 3-D plots
isholdCurrent hold state
makehgtformCreate 4-by-4 transform matrix

Object Property Operations

getQuery Handle Graphics object properties
linkaxesSynchronize limits of specified 2-D axes
linkpropKeep same value for corresponding properties
refreshdataRefresh data in graph when data source is specified
setSet Handle Graphics object properties

3-D Visualization

Surface and Mesh PlotsPlot matrices, visualize functions of two variables, specify colormap
View ControlControl the camera viewpoint, zooming, rotation, aspect ratio, set axis limits
LightingAdd and control scene lighting
TransparencySpecify and control object transparency
Volume VisualizationVisualize gridded volume data

Surface and Mesh Plots

Surface and Mesh CreationVisualizing gridded and triangulated data as lines and surfaces
Domain GenerationGridding data and creating arrays
Color OperationsSpecifying, converting, and manipulating color spaces, colormaps, colorbars, and backgrounds

Surface and Mesh Creation

hiddenRemove hidden lines from mesh plot
mesh, meshc, meshzMesh plots
peaksExample function of two variables
surf, surfc3-D shaded surface plot
surfaceCreate surface object
surfl Surface plot with colormap-based lighting
tetrameshTetrahedron mesh plot
trimeshTriangular mesh plot
triplot2-D triangular plot
trisurfTriangular surface plot

Domain Generation

griddataData gridding
meshgridGenerate X and Y arrays for 3-D plots

Color Operations

brightenBrighten or darken colormap
caxisColor axis scaling
colorbarColorbar showing color scale
colordefSet default property values to display different color schemes
colormapSet and get current colormap
colormapeditorStart colormap editor
ColorSpec (Color Specification)Color specification
contrastGrayscale colormap for contrast enhancement
graymon Set default figure properties for grayscale monitors
hsv2rgbConvert HSV colormap to RGB colormap
rgb2hsvConvert RGB colormap to HSV colormap
rgbplotPlot colormap
shadingSet color shading properties
spinmapSpin colormap
surfnormCompute and display 3-D surface normals
whitebgChange axes background color

View Control

Camera ViewpointOrbiting, dollying, pointing, rotating camera positions and setting fields of view
Aspect Ratio and Axis LimitsSpecifying what portions of axes to view and how to scale them
Object ManipulationPanning, rotating, and zooming views
Region of InterestInteractively identifying rectangular regions

Camera Viewpoint

camdolly Move camera position and target
cameratoolbarControl camera toolbar programmatically
camlookatPosition camera to view object or group of objects
camorbitRotate camera position around camera target
campanRotate camera target around camera position
camposSet or query camera position
camprojSet or query projection type
camrollRotate camera about view axis
camtargetSet or query location of camera target
camupSet or query camera up vector
camvaSet or query camera view angle
camzoomZoom in and out on scene
makehgtformCreate 4-by-4 transform matrix
viewViewpoint specification
viewmtxView transformation matrices

Aspect Ratio and Axis Limits

daspectSet or query axes data aspect ratio
pbaspectSet or query plot box aspect ratio
xlim, ylim, zlimSet or query axis limits

Object Manipulation

panPan view of graph interactively
resetReset graphics object properties to their defaults
rotateRotate object in specified direction
rotate3d Rotate 3-D view using mouse
selectmoveresizeSelect, move, resize, or copy axes and uicontrol graphics objects
zoomTurn zooming on or off or magnify by factor

Region of Interest

dragrectDrag rectangles with mouse
rbboxCreate rubberband box for area selection

Lighting

camlightCreate or move light object in camera coordinates
diffuseCalculate diffuse reflectance
lightCreate light object
lightangleCreate or position light object in spherical coordinates
lightingSpecify lighting algorithm
materialControl reflectance properties of surfaces and patches
specularCalculate specular reflectance

Transparency

alimSet or query axes alpha limits
alphaSet transparency properties for objects in current axes
alphamapSpecify figure alphamap (transparency)

Volume Visualization

coneplotPlot velocity vectors as cones in 3-D vector field
contoursliceDraw contours in volume slice planes
curlCompute curl and angular velocity of vector field
divergenceCompute divergence of vector field
flowSimple function of three variables
interpstreamspeedInterpolate stream-line vertices from flow speed
isocapsCompute isosurface end-cap geometry
isocolorsCalculate isosurface and patch colors
isonormalsCompute normals of isosurface vertices
isosurfaceExtract isosurface data from volume data
reducepatchReduce number of patch faces
reducevolumeReduce number of elements in volume data set
shrinkfacesReduce size of patch faces
sliceVolumetric slice plot
smooth3Smooth 3-D data
stream2Compute 2-D streamline data
stream3Compute 3-D streamline data
streamlinePlot streamlines from 2-D or 3-D vector data
streamparticlesPlot stream particles
streamribbon3-D stream ribbon plot from vector volume data
streamslicePlot streamlines in slice planes
streamtubeCreate 3-D stream tube plot
subvolumeExtract subset of volume data set
surf2patchConvert surface data to patch data
volumeboundsCoordinate and color limits for volume data

GUI Development

Predefined Dialog BoxesDialog boxes for error, user input, waiting, etc.
User Interface DeploymentOpen GUIs, create the handles structure
User Interface DevelopmentStart GUIDE, manage application data, get user input
User Interface ObjectsCreate GUI components
Objects from CallbacksFind object handles from within callbacks functions
GUI UtilitiesMove objects, wrap text
Program ExecutionWait and resume based on user input

Predefined Dialog Boxes

dialogCreate and display empty dialog box
errordlgCreate and open error dialog box
export2wsdlgExport variables to workspace
helpdlgCreate and open help dialog box
inputdlgCreate and open input dialog box
listdlgCreate and open list-selection dialog box
msgboxCreate and open message box
printdlgPrint dialog box
printpreviewPreview figure to print
questdlgCreate and open question dialog box
uigetdirOpen standard dialog box for selecting directory
uigetfileOpen standard dialog box for retrieving files
uigetprefOpen dialog box for retrieving preferences
uiopenOpen file selection dialog box with appropriate file filters
uiputfileOpen standard dialog box for saving files
uisaveOpen standard dialog box for saving workspace variables
uisetcolorOpen standard dialog box for setting object's ColorSpec
uisetfontOpen standard dialog box for setting object's font characteristics
waitbarOpen or update a wait bar dialog box
warndlgOpen warning dialog box

User Interface Deployment

guidataStore or retrieve GUI data
guihandlesCreate structure of handles
moveguiMove GUI figure to specified location on screen
openfigOpen new copy or raise existing copy of saved figure

User Interface Development

addprefAdd preference
getappdataValue of application-defined data
getprefPreference
ginputGraphical input from mouse or cursor
guidataStore or retrieve GUI data
guideOpen GUI Layout Editor
inspectOpen Property Inspector
isappdataTrue if application-defined data exists
isprefTest for existence of preference
rmappdataRemove application-defined data
rmprefRemove preference
setappdataSpecify application-defined data
setprefSet preference
uigetprefOpen dialog box for retrieving preferences
uisetprefManage preferences used in uigetpref
waitforWait for condition before resuming execution
waitforbuttonpressWait for key press or mouse-button click

User Interface Objects

menuGenerate menu of choices for user input
uibuttongroupCreate container object to exclusively manage radio buttons and toggle buttons
uicontextmenuCreate context menu
uicontrolCreate user interface control object
uimenuCreate menus on figure windows
uipanelCreate panel container object
uipushtoolCreate push button on toolbar
uitableCreate 2-D graphic table GUI component
uitoggletoolCreate toggle button on toolbar
uitoolbarCreate toolbar on figure

Objects from Callbacks

findallFind all graphics objects
findfigsFind visible offscreen figures
findobjLocate graphics objects with specific properties
gcbfHandle of figure containing object whose callback is executing
gcboHandle of object whose callback is executing

GUI Utilities

getpixelpositionGet component position in pixels
listfontsList available system fonts
selectmoveresizeSelect, move, resize, or copy axes and uicontrol graphics objects
setpixelpositionSet component position in pixels
textwrapWrapped string matrix for given uicontrol
uistackReorder visual stacking order of objects

Program Execution

uiresumeResume execution of blocked M-file
uiwaitBlock execution and wait for resume

External Interfaces

Shared LibrariesAccess functions stored in external shared library files
JavaWork with objects constructed from Java API and third-party class packages
.NETWork with objects constructed from .NET assemblies
Component Object Model and ActiveXIntegrate COM components into your application
Web ServicesCommunicate between applications over a network using SOAP and WSDL
Serial Port DevicesRead and write to devices connected to your computer's serial port


See also MATLAB C and Fortran API Reference for functions you can use in external routines that interact with MATLAB programs and the data in MATLAB workspaces.

Shared Libraries

calllibCall function in shared library
libfunctionsReturn information on functions in shared library
libfunctionsviewView functions in shared library
libisloadedDetermine if shared library is loaded
libpointerCreate pointer object for use with shared libraries
libstructCreate structure pointer for use with shared libraries
loadlibraryLoad shared library into MATLAB software
unloadlibraryUnload shared library from memory

Java

classCreate object or return class of object
fieldnamesField names of structure, or public fields of object
importAdd package or class to current import list
inspectOpen Property Inspector
isjavaDetermine whether input is Sun Java object
javaaddpathAdd entries to dynamic Sun Java class path
javaArrayConstruct Sun Java array
javachkGenerate error message based on Sun Java feature support
javaclasspathGet and set Sun Java class path
javaMethodCall Sun Java method
javaMethodEDTCall Sun Java method from Event Dispatch Thread (EDT)
javaObjectConstruct Sun Java object
javaObjectEDTConstruct Sun Java object on Event Dispatch Thread (EDT)
javarmpathRemove entries from dynamic Sun Java class path
methodsInformation on class methods
methodsviewInformation on class methods in separate window
usejavaDetermine whether Sun Java feature is supported in MATLAB software

.NET

NET.addAssemblyMake .NET assembly visible to MATLAB
NET.convertArrayConvert MATLAB array to .NET array
NET.createArrayCreate single or multidimensional .NET array
NET.createGenericCreate instance of specialized .NET generic type
NET.GenericClassRepresent parameterized generic type definitions
NET.GenericClassConstructor for NET.GenericClass class

Component Object Model and ActiveX

actxcontrolCreate Microsoft ActiveX control in figure window
actxcontrollistList all currently installed Microsoft ActiveX controls
actxcontrolselectOpen GUI to create Microsoft ActiveX control
actxGetRunningServerGet handle to running instance of Automation server
actxserverCreate COM server
addpropertyAdd custom property to COM object
delete (COM)Remove COM control or server
deletepropertyRemove custom property from COM object
enableserviceEnable, disable, or report status of Automation server
eventlistenersList all event handler functions registered for COM object
events (COM)List of events COM object can trigger
ExecuteExecute MATLAB command in Automation server
Feval (COM)Evaluate MATLAB function in Automation server
fieldnamesField names of structure, or public fields of object
get (COM)Get property value from interface, or display properties
GetCharArrayGet character array from Automation server
GetFullMatrixGet matrix from Automation server
GetVariableGet data from variable in Automation server workspace
GetWorkspaceDataGet data from Automation server workspace
inspectOpen Property Inspector
interfacesList custom interfaces to COM server
invokeInvoke method on COM object or interface, or display methods
iscomIs input COM object
iseventTrue if COM object event
isinterfaceIs input COM interface
ismethodDetermine whether input is COM object method
ispropDetermine whether input is COM object property
load (COM)Initialize control object from file
MaximizeCommandWindowOpen Automation server window
methodsInformation on class methods
methodsviewInformation on class methods in separate window
MinimizeCommandWindowMinimize size of Automation server window
moveMove or resize control in parent window
propedit (COM) Open built-in property page for control
PutCharArrayStore character array in Automation server
PutFullMatrixStore matrix in Automation server
PutWorkspaceDataStore data in Automation server workspace
Quit (COM)Terminate MATLAB Automation server
registereventRegister event handler for COM object event at run-time
releaseRelease COM interface
save (COM)Serialize control object to file
set (COM)Set object or interface property to specified value
unregisteralleventsUnregister all event handlers for COM object event at run-time
unregistereventUnregister event handler for COM object event at run-time

Web Services

callSoapServiceSend SOAP message to endpoint
createClassFromWsdlCreate MATLAB class based on WSDL document
createSoapMessageCreate SOAP message to send to server
parseSoapResponseConvert response string from SOAP server into MATLAB types

Serial Port Devices

instrcallbackEvent information when event occurs
instrfindRead serial port objects from memory to MATLAB workspace
instrfindallFind visible and hidden serial port objects
readasyncRead data asynchronously from device
recordRecord data and event information to file
serialCreate serial port object
serial.clearRemove serial port object from MATLAB workspace
serial.deleteRemove serial port object from memory
serial.fgetlRead line of text from device and discard terminator
serial.fgetsRead line of text from device and include terminator
serial.fopenConnect serial port object to device
serial.fprintfWrite text to device
serial.freadRead binary data from device
serial.fscanfRead data from device, and format as text
serial.fwriteWrite binary data to device
serial.getSerial port object properties
serial.isvalidDetermine whether serial port objects are valid
serial.lengthLength of serial port object array
serial.loadLoad serial port objects and variables into MATLAB workspace
serial.saveSave serial port objects and variables to MAT-file
serial.setConfigure or display serial port object properties
serial.sizeSize of serial port object array
serialbreakSend break to device connected to serial port
stopasyncStop asynchronous read and write operations
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS