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 DLLs, Java, 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
docoptWeb browser for UNIX platforms
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 browser 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 tool for graphical editing
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
filebrowserCurrent Directory browser
isdirDetermine whether input is a 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
dbdownChange local workspace context when 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
dbupChange local workspace context
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 a source control system (UNIX platforms)
checkoutCheck files out of a 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 a 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
maxNumCompThreadsControls 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 the MATLAB software

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 a random stream property
setDefaultStream (RandStream)Set the 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 a 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

delaunayDelaunay triangulation
delaunay33-D Delaunay tessellation
delaunaynN-D Delaunay tessellation
dsearchSearch Delaunay triangulation for nearest point
dsearchnN-D nearest point search
tetrameshTetrahedron mesh plot
trimeshTriangular mesh plot
triplot2-D triangular plot
trisurfTriangular surface plot
tsearchSearch for enclosing Delaunay triangle
tsearchnN-D closest simplex search

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
quadNumerically evaluate integral, adaptive Simpson quadrature
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
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
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 a 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
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

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

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