MATLAB Function Reference | Search  Help Desk |
General Purpose Commands
Managing Commands and Functions
addpath
Add directories to MATLAB's search path
page 2-25
doc
Display HTML documentation in Web browser
page 2-212
help
Online help for MATLAB functions and M-files
page 2-369
lasterr
Last error message
page 2-433
lastwarn
Last warning message
page 2-435
lookfor
Keyword search through all help entries
page 2-451
path
Control MATLAB's directory search path
page 2-533
profile
Measure and display M-file execution profiles
page 2-565
rmpath
Remove directories from MATLAB's search path
page 2-606
type
List file
page 2-725
version
MATLAB version number
page 2-734
what
Directory listing of M-files, MAT-files, and MEX-files
page 2-742
whatsnew
Display README files for MATLAB and toolboxes
page 2-744
which
Locate functions and files
page 2-745
Managing Variables and the Workspace
clear
Remove items from memory
page 2-120
disp
Display text or array
page 2-207
length
Length of vector
page 2-439
load
Retrieve variables from disk
page 2-442
mlock
Prevent M-file clearing
page 2-481
munlock
Allow M-file clearing
page 2-485
pack
Consolidate workspace memory
page 2-529
save
Save workspace variables on disk
page 2-616
size
Array dimensions
page 2-632
who, whos
List directory of variables in memory
page 2-748
Controlling the Command Window
echo
Echo M-files during execution
page 2-215
format
Control the output display format
page 2-291
more
Control paged output for the command window
page 2-483
Working with Files and the Operating Environment
acopy
Copy Macintosh file from one folder to another
page 2-20
amove
Move Macintosh file from one folder to another
page 2-30
applescript
Load a compiled AppleScript from a file and execute it
page 2-35
arename
Rename Macintosh File
page 2-36
areveal
Reveal filename on Macintosh desktop
page 2-37
cd
Change working directory
page 2-92
copyfile
Copy file
page 2-139
delete
Delete files and graphics objects
page 2-200
diary
Save session in a disk file
page 2-203
dir
Directory listing
page 2-206
edit
Edit an M-file
page 2-216
fileparts
Filename parts
page 2-267
fullfile
Build full filename from parts
page 2-308
gestalt
Macintosh gestalt function
page 2-343
inmem
Functions in memory
page 2-396
matlabroot
Root directory of MATLAB installation
page 2-468
tempdir
Return the name of the system's temporary directory
page 2-714
mkdir
Make directory
page 2-480
tempname
Unique name for temporary file
page 2-715
!
Execute operating system command
page 2-13
matlabrc
MATLAB startup M-file
page 2-467
quit
Terminate MATLAB
page 2-582
startup
MATLAB startup M-file
page 2-674
Operators and Special Characters
+
Plus
page 2-2
-
Minus
page 2-2
*
Matrix multiplication
page 2-2
.*
Array multiplication
page 2-2
^
Matrix power
page 2-2
.^
Array power
page 2-2
kron
Kronecker tensor product
page 2-432
\
Backslash or left division
page 2-2
/
Slash or right division
page 2-2
./
and .\
Array division, right and left
page 2-2
:
Colon
page 2-16
( )
Parentheses
page 2-13
[ ]
Brackets
page 2-13
Curly braces
page 2-13
.
Decimal point
page 2-13
...
Continuation
page 2-13
,
Comma
page 2-13
;
Semicolon
page 2-13
%
Comment
page 2-13
!
Exclamation point
page 2-13
'
Transpose and quote
page 2-13
.'
Nonconjugated transpose
page 2-13
=
Assignment
page 2-13
Equality
page 2-9
< >
Relational operators
page 2-9
&
Logical and
page 2-11
|
Logical or
page 2-11
Logical not
page 2-11
xor
Logical exclusive or
page 2-756
Logical Functions
all
Test to determine if all elements are nonzero
page 2-28
any
Test for any nonzeros
page 2-33
exist
Check if a variable or file exists
page 2-244
find
Find indices and values of nonzero elements
page 2-271
is*
Detect state
page 2-419
*isa
Detect an object of a given class
page 2-423
logical
Convert numeric values to logical
page 2-447
mislocked
True if M-file cannot be cleared
page 2-479
Language Constructs and Debugging
MATLAB as a Programming Language
builtin
Execute builtin function from overloaded method
page 2-83
eval
Interpret strings containing MATLAB expressions
page 2-241
evalin
Evaluate expression in workspace
page 2-243
feval
Function evaluation
page 2-257
function
Function M-files
page 2-309
global
Define global variables
page 2-345
nargchk
Check number of input arguments
page 2-487
persistent
Define persistent variable
page 2-543
script
Script M-files
page 2-621
break
Terminate execution of for or while loop
page 2-82
case
Case switch
page 2-89
catch
Begin catch block
page 2-91
else
Conditionally execute statements
page 2-230
elseif
Conditionally execute statements
page 2-231
end
Terminate for, while, switch, try, and if statements or indicate
last index
page 2-233
error
Display error messages
page 2-238
for
Repeat statements a specific number of times
page 2-289
if
Conditionally execute statements
page 2-373
otherwise
Default part of switch statement
page 2-528
return
Return to the invoking function
page 2-604
switch
Switch among several cases based on expression
page 2-704
try
Begin try block
page 2-723
warning
Display warning message
page 2-737
while
Repeat statements an indefinite number of times
page 2-747
input
Request user input
page 2-398
keyboard
Invoke the keyboard in an M-file
page 2-431
menu
Generate a menu of choices for user input
page 2-472
pause
Halt execution temporarily
page 2-535
class
Create object or return class of object
page 2-119
double
Convert to double precision
page 2-213
inferiorto
Inferior class relationship
page 2-392
inline
Construct an inline object
page 2-393
isa
Detect an object of a given class
page 2-423
superiorto
Superior class relationship
page 2-699
uint8
Convert to unsigned 8-bit integer
page 2-726
dbclear
Clear breakpoints
page 2-160
dbcont
Resume execution
page 2-162
dbdown
Change local workspace context
page 2-163
dbmex
Enable MEX-file debugging
page 2-166
dbquit
Quit debug mode
page 2-167
dbstack
Display function call stack
page 2-168
dbstatus
List all breakpoints
page 2-169
dbstep
Execute one or more lines from a breakpoint
page 2-170
dbstop
Set breakpoints in an M-file function
page 2-171
dbtype
List M-file with line numbers
page 2-174
dbup
Change local workspace context
page 2-175
Elementary Matrices and Matrix Manipulation
Elementary Matrices and Arrays
eye
Identity matrix
page 2-251
linspace
Generate linearly spaced vectors
page 2-441
logspace
Generate logarithmically spaced vectors
page 2-450
ones
Create an array of all ones
page 2-526
rand
Uniformly distributed random numbers and arrays
page 2-584
randn
Normally distributed random numbers and arrays
page 2-586
zeros
Create an array of all zeros
page 2-757
:
(colon)
Regularly spaced vector
page 2-16
Special Variables and Constants
ans
The most recent answer
page 2-32
computer
Identify the computer on which MATLAB is running
page 2-128
eps
Floating-point relative accuracy
page 2-235
flops
Count floating-point operations
page 2-279
i
Imaginary unit
page 2-372
Inf
Infinity
page 2-391
inputname
Input argument name
page 2-399
j
Imaginary unit
page 2-430
NaN
Not-a-Number
page 2-486
nargin, nargout
Number of function arguments
page 2-488
pi
Ratio of a circle's circumference to its diameter,
page 2-544
realmax
Largest positive floating-point number
page 2-596
realmin
Smallest positive floating-point number
page 2-597
varargin, varargout
Pass or return variable numbers of arguments
page 2-731
calendar
Calendar
page 2-85
clock
Current time as a date vector
page 2-122
cputime
Elapsed CPU time
page 2-145
date
Current date string
page 2-155
datenum
Serial date number
page 2-156
datestr
Date string format
page 2-157
datevec
Date components
page 2-159
eomday
End of month
page 2-234
etime
Elapsed time
page 2-240
now
Current date and time
page 2-500
tic, toc
Stopwatch timer
page 2-716
weekday
Day of the week
page 2-741
cat
Concatenate arrays
page 2-90
diag
Diagonal matrices and diagonals of a matrix
page 2-202
fliplr
Flip matrices left-right
page 2-276
flipud
Flip matrices up-down
page 2-277
repmat
Replicate and tile an array
page 2-600
reshape
Reshape array
page 2-601
rot90
Rotate matrix 90 degrees
page 2-609
tril
Lower triangular part of a matrix
page 2-721
triu
Upper triangular part of a matrix
page 2-722
:
(colon)
Index into array, rearrange array
page 2-16
Specialized Matrices
compan
Companion matrix
page 2-127
gallery
Test matrices
page 2-319
hadamard
Hadamard matrix
page 2-362
hankel
Hankel matrix
page 2-363
hilb
Hilbert matrix
page 2-371
invhilb
Inverse of the Hilbert matrix
page 2-417
magic
Magic square
page 2-464
pascal
Pascal matrix
page 2-532
toeplitz
Toeplitz matrix
page 2-717
wilkinson
Wilkinson's eigenvalue test matrix
page 2-750
Elementary Math Functions
abs
Absolute value and complex magnitude
page 2-19
acos, acosh
Inverse cosine and inverse hyperbolic cosine
page 2-21
acot, acoth
Inverse cotangent and inverse hyperbolic cotangent
page 2-22
acsc, acsch
Inverse cosecant and inverse hyperbolic cosecant
page 2-23
angle
angle Phase angle
page 2-31
asec, asech
Inverse secant and inverse hyperbolic secant
page 2-38
asin, asinh
Inverse sine and inverse hyperbolic sine
page 2-39
atan, atanh
Inverse tangent and inverse hyperbolic tangent
page 2-41
atan2
Four-quadrant inverse tangent
page 2-43
ceil
Round toward infinity
page 2-95
conj
Complex conjugate
page 2-133
cos, cosh
Cosine and hyperbolic cosine
page 2-141
cot, coth
Cotangent and hyperbolic cotangent
page 2-142
csc, csch
Cosecant and hyperbolic cosecant
page 2-147
exp
Exponential
page 2-246
fix
Round towards zero
page 2-274
floor
Round towards minus infinity
page 2-278
gcd
Greatest common divisor
page 2-341
imag
Imaginary part of a complex number
page 2-379
lcm
Least common multiple
page 2-436
log
Natural logarithm
page 2-444
log2
Base 2 logarithm and dissect floating-point numbers into exponent and
mantissa
page 2-445
log10
Common (base 10) logarithm
page 2-446
mod
Modulus (signed remainder after division)
page 2-482
nchoosek
Binomial coefficient or all combinations
page 2-490
real
Real part of complex number
page 2-595
rem
Remainder after division
page 2-599
round
Round to nearest integer
page 2-610
sec, sech
Secant and hyperbolic secant
page 2-622
sign
Signum function
page 2-629
sin, sinh
Sine and hyperbolic sine
page 2-630
sqrt
Square root
page 2-666
tan, tanh
Tangent and hyperbolic tangent
page 2-712
Specialized Math Functions
airy
Airy functions
page 2-26
besselh
Bessel functions of the third kind (Hankel functions)
page 2-51
besseli, besselk
Modified Bessel functions
page 2-53
besselj, bessely
Bessel functions
page 2-56
beta, betainc, betaln
Beta functions
page 2-59
ellipj
Jacobi elliptic functions
page 2-226
ellipke
Complete elliptic integrals of the first and second kind
page 2-228
erf, erfc, erfcx, erfinv
Error functions
page 2-236
expint
Exponential integral
page 2-247
gamma, gammainc, gammaln
Gamma functions
page 2-339
legendre
Associated Legendre functions
page 2-437
pow2
Base 2 power and scale floating-point numbers
page 2-562
rat, rats
Rational fraction approximation
page 2-590
Coordinate System Conversion
cart2pol
Transform Cartesian coordinates to polar or cylindrical
page 2-86
cart2sph
Transform Cartesian coordinates to spherical
page 2-88
pol2cart
Transform polar or cylindrical coordinates to Cartesian
page 2-548
sph2cart
Transform spherical coordinates to Cartesian
page 2-650
Matrix Functions - Numerical Linear Algebra
cond
Condition number with respect to inversion
page 2-130
condeig
Condition number with respect to eigenvalues
page 2-131
det
Matrix determinant
page 2-201
norm
Vector and matrix norms
page 2-498
null
Null space of a matrix
page 2-501
orth
Range space of a matrix
page 2-527
rank
Rank of a matrix
page 2-589
rcond
Matrix reciprocal condition number estimate
page 2-593
rref, rrefmovie
Reduced row echelon form
page 2-611
subspace
Angle between two subspaces
page 2-697
trace
Sum of diagonal elements
page 2-718
\ /
Linear equation solution
page 2-2
chol
Cholesky factorization
page 2-107
inv
Matrix inverse
page 2-414
lscov
Least squares solution in the presence of known covariance
page 2-453
lu
LU matrix factorization
page 2-454
nnls
Nonnegative least squares
page 2-494
pinv
Moore-Penrose pseudoinverse of a matrix
page 2-545
qr
Orthogonal-triangular decomposition
page 2-571
Eigenvalues and Singular Values
balance
Improve accuracy of computed eigenvalues
page 2-47
cdf2rdf
Convert complex diagonal form to real block diagonal form
page 2-93
eig
Eigenvalues and eigenvectors
page 2-217
gsvd
Generalized singular value decomposition
page 2-357
hess
Hessenberg form of a matrix
page 2-367
poly
Polynomial with specified roots
page 2-550
qz
QZ factorization for generalized eigenvalues
page 2-583
rsf2csf
Convert real Schur form to complex Schur form
page 2-613
schur
Schur decomposition
page 2-619
svd
Singular value decomposition
page 2-700
expm
Matrix exponential
page 2-249
funm
Evaluate functions of a matrix
page 2-311
logm
Matrix logarithm
page 2-448
sqrtm
Matrix square root
page 2-667
qrdelete
Delete column from QR factorization
page 2-574
qrinsert
Insert column in QR factorization
page 2-575
Data Analysis and Fourier Transform Functions
convhull
Convex hull
page 2-137
cumprod
Cumulative product
page 2-148
cumsum
Cumulative sum
page 2-149
cumtrapz
Cumulative trapezoidal numerical integration
page 2-150
delaunay
Delaunay triangulation
page 2-197
dsearch
Search for nearest point
page 2-214
factor
Prime factors
page 2-253
inpolygon
Detect points inside a polygonal region
page 2-397
max
Maximum elements of an array
page 2-469
mean
Average or mean value of arrays
page 2-470
median
Median value of arrays
page 2-471
min
Minimum elements of an array
page 2-478
perms
All possible permutations
page 2-541
polyarea
Area of polygon
page 2-553
primes
Generate list of prime numbers
page 2-563
prod
Product of array elements
page 2-564
sort
Sort elements in ascending order
page 2-634
sortrows
Sort rows in ascending order
page 2-635
std
Standard deviation
page 2-675
sum
Sum of array elements
page 2-698
trapz
Trapezoidal numerical integration
page 2-719
tsearch
Search for enclosing Delaunay triangle
page 2-724
voronoi
Voronoi diagram
page 2-735
del2
Discrete Laplacian
page 2-194
diff
Differences and approximate derivatives
page 2-204
gradient
Numerical gradient
page 2-351
corrcoef
Correlation coefficients
page 2-140
cov
Covariance matrix
page 2-143
conv
Convolution and polynomial multiplication
page 2-134
conv2
Two-dimensional convolution
page 2-135
deconv
Deconvolution and polynomial division
page 2-193
filter
Filter data with an infinite impulse response (IIR) or finite impulse response
(FIR) filter
page 2-268
filter2
Two-dimensional digital filtering
page 2-270
abs
Absolute value and complex magnitude
page 2-19
angle
Phase angle
page 2-31
cplxpair
Sort complex numbers into complex conjugate pairs
page 2-144
fft
One-dimensional fast Fourier transform
page 2-258
fft2
Two-dimensional fast Fourier transform
page 2-261
fftshift
Shift DC component of fast Fourier transform to center of spectrum
page 2-263
ifft
Inverse one-dimensional fast Fourier transform
page 2-375
ifft2
Inverse two-dimensional fast Fourier transform
page 2-376
ifftshift
Inverse FFT shift
page 2-378
nextpow2
Next power of two
page 2-493
unwrap
Correct phase angles
page 2-729
cross
Vector cross product
page 2-146
intersect
Set intersection of two vectors
page 2-413
ismember
Detect members of a set
page 2-424
setdiff
Return the set difference of two vectors
page 2-624
setxor
Set exclusive-or of two vectors
page 2-627
union
Set union of two vectors
page 2-727
unique
Unique elements of a vector
page 2-728
Polynomial and Interpolation Functions
conv
Convolution and polynomial multiplication
page 2-134
deconv
Deconvolution and polynomial division
page 2-193
poly
Polynomial with specified roots
page 2-550
polyder
Polynomial derivative
page 2-554
polyeig
Polynomial eigenvalue problem
page 2-555
polyfit
Polynomial curve fitting
page 2-556
polyval
Polynomial evaluation
page 2-559
polyvalm
Matrix polynomial evaluation
page 2-560
residue
Convert between partial fraction expansion and polynomial coefficients
page 2-602
roots
Polynomial roots
page 2-607
griddata
Data gridding
page 2-354
interp1
One-dimensional data interpolation (table lookup)
page 2-401
interp2
Two-dimensional data interpolation (table lookup)
page 2-404
interp3
Three-dimensional data interpolation (table lookup)
page 2-408
interpft
One-dimensional interpolation using the FFT method
page 2-410
interpn
Multidimensional data interpolation (table lookup)
page 2-411
meshgrid
Generate X and Y matrices for three-dimensional plots
page 2-473
ndgrid
Generate arrays for multidimensional functions and interpolation
page 2-491
spline
Cubic spline interpolation
page 2-651
Function Functions - Nonlinear Numerical Methods
dblquad
Numerical double integration
page 2-164
fmin
Minimize a function of one variable
page 2-280
fmins
Minimize a function of several variables
page 2-282
fzero
Zero of a function of one variable
page 2-316
ode45, ode23, ode113, ode15s, ode23s, ode23t, ode23tb
Solve differential equations
page 2-505
odefile
Define a differential equation problem for ODE solvers
page 2-513
odeget
Extract properties from options structure created with odeset
page 2-519
odeset
Create or alter options structure for input to ODE solvers
page 2-520
quad, quad8
Numerical evaluation of integrals
page 2-580
Vectorize expression
page 2-733
Sparse Matrix Functions
spdiags
Extract and create sparse band and diagonal matrices
page 2-644
speye
Sparse identity matrix
page 2-648
sprand
Sparse uniformly distributed random matrix
page 2-658
sprandn
Sparse normally distributed random matrix
page 2-659
sprandsym
Sparse symmetric random matrix
page 2-660
find
Find indices and values of nonzero elements
page 2-271
full
Convert sparse matrix to full matrix
page 2-307
sparse
Create sparse matrix
page 2-640
spconvert
Import matrix from sparse matrix external format
page 2-642
Working with Nonzero Entries of Sparse Matrices
nnz
Number of nonzero matrix elements
page 2-496
nonzeros
Nonzero matrix elements
page 2-497
nzmax
Amount of storage allocated for nonzero matrix elements
page 2-504
spalloc
Allocate space for sparse matrix
page 2-639
spfun
Apply function to nonzero sparse matrix elements
page 2-649
spones
Replace nonzero sparse matrix elements with ones
page 2-654
spy
Visualize sparsity pattern
page 2-665
colmmd
Sparse column minimum degree permutation
page 2-123
colperm
Sparse column permutation based on nonzero count
page 2-126
dmperm
Dulmage-Mendelsohn decomposition
page 2-211
randperm
Random permutation
page 2-588
symmmd
Sparse symmetric minimum degree ordering
page 2-706
symrcm
Sparse reverse Cuthill-McKee ordering
page 2-708
Norm, Condition Number, and Rank
condest
1-norm matrix condition number estimate
page 2-132
normest
2-norm estimate
page 2-499
Sparse Systems of Linear Equations
bicg
BiConjugate Gradients method
page 2-61
bicgstab
BiConjugate Gradients Stabilized method
page 2-68
cgs
Conjugate Gradients Squared method
page 2-101
cholinc
Sparse Incomplete Cholesky and Cholesky-Infinity factorizations
page 2-109
cholupdate
Rank 1 update to Cholesky factorization
page 2-116
gmres
Generalized Minimum Residual method (with restarts)
page 2-347
luinc
Incomplete LU matrix factorizations
page 2-457
pcg
Preconditioned Conjugate Gradients method
page 2-536
qmr
Quasi-Minimal Residual method
page 2-567
qr
Orthogonal-triangular decomposition
page 2-571
qrdelete
Delete column from QR factorization
page 2-574
qrinsert
Insert column in QR factorization
page 2-575
qrupdate
Rank 1 update to QR factorization
page 2-576
Sparse Eigenvalues and Singular Values
eigs
Find a few eigenvalues and eigenvectors
page 2-220
svds
A few singular values
page 2-702
spparms
Set parameters for sparse matrix routines
page 2-655
Sound Processing Functions
sound
Convert vector into sound
page 2-636
SPARCstation-specific Sound Functions
auread
Read NeXT/SUN (.au) sound file
page 2-44
auwrite
Write NeXT/SUN (.au) sound file
page 2-45
wavread
Read Microsoft WAVE (.wav) sound file
page 2-738
wavwrite
Write Microsoft WAVE (.wav) sound file
page 2-739
readsnd
Read snd resources and files
page 2-594
recordsound
Record sound
page 2-598
soundcap
Sound capabilities
page 2-637
speak
Speak text string
page 2-647
writesnd
Write snd resources and files
page 2-753
Character String Functions
abs
Absolute value and complex magnitude
page 2-19
eval
Interpret strings containing MATLAB expressions
page 2-241
real
Real part of complex number
page 2-595
strings
MATLAB string handling
page 2-683
deblank
Strip trailing blanks from the end of a string
page 2-189
findstr
Find one string within another
page 2-273
lower
Convert string to lower case
page 2-452
strcat
String concatenation
page 2-678
strcmp
Compare strings
page 2-680
strcmpi
Compare strings ignoring case
page 2-682
strjust
Justify a character array
page 2-684
strmatch
Find possible matches for a string
page 2-685
strncmp
Compare the first n
characters of two strings
page 2-686
strrep
String search and replace
page 2-688
strtok
First token in string
page 2-689
strvcat
Vertical concatenation of strings
page 2-692
upper
Convert string to upper case
page 2-730
char
Create character array (string)
page 2-105
int2str
Integer to string conversion
page 2-400
mat2str
Convert a matrix into a string
page 2-466
num2str
Number to string conversion
page 2-503
sprintf
Write formatted data to a string
page 2-661
sscanf
Read string under format control
page 2-671
str2num
String to number conversion
page 2-677
bin2dec
Binary to decimal number conversion
page 2-72
dec2bin
Decimal to binary number conversion
page 2-191
dec2hex
Decimal to hexadecimal number conversion
page 2-192
hex2dec
IEEE hexadecimal to decimal number conversion
page 2-369
hex2num
Hexadecimal to double number conversion
page 2-370
Low-Level File I/O Functions
fclose
Close one or more open files
page 2-254
fopen
Open a file or obtain information about open files
page 2-286
fread
Read binary data from file
page 2-297
fwrite
Write binary data to a file
page 2-313
fgetl
Return the next line of a file as a string without line terminator(s)
page 2-264
fgets
Return the next line of a file as a string with line terminator(s)
page 2-265
fprintf
Write formatted data to file
page 2-292
fscanf
Read formatted data from file
page 2-302
feof
Test for end-of-file
page 2-255
ferror
Query MATLAB about errors in file input or output
page 2-256
frewind
Rewind an open file
page 2-301
fseek
Set file position indicator
page 2-305
ftell
Get file position indicator
page 2-306
sprintf
Write formatted data to a string
page 2-661
sscanf
Read string under format control
page 2-671
qtwrite
Write QuickTime movie file to disk
page 2-579
dlmread
Read an ASCII delimited file into a matrix
page 2-208
dlmwrite
Write a matrix to an ASCII delimited file
page 2-210
hdf
HDF interface
page 2-364
imfinfo
Return information about a graphics file
page 2-380
imread
Read image from graphics file
page 2-383
imwrite
Write an image to a graphics file
page 2-386
wk1read
Read a Lotus123 WK1 spreadsheet file into a matrix
page 2-751
wk1write
Write a matrix to a Lotus123 WK1 spreadsheet file
page 2-752
xlgetrange
Get range of cells from Microsoft Excel worksheet
page 2-754
xlsetrange
Set range of cells in Microsoft Excel worksheet
page 2-755
Bitwise Functions
bitand
Bit-wise AND
page 2-73
bitcmp
Complement bits
page 2-74
bitor
Bit-wise OR
page 2-77
bitmax
Maximum floating-point integer
page 2-76
bitset
Set bit
page 2-78
bitshift
Bit-wise shift
page 2-79
bitget
Get bit
page 2-75
bitxor
Bit-wise XOR
page 2-80
Structure Functions
fieldnames
Field names of a structure
page 2-266
getfield
Get field of structure array
page 2-344
rmfield
Remove structure fields
page 2-605
setfield
Set field of structure array
page 2-625
struct
Create structure array
page 2-690
struct2cell
Structure to cell array conversion
page 2-691
Object Functions
class
Create object or return class of object
page 2-119
isa
Detect an object of a given class
page 2-423
Cell Array Functions
cell
Create cell array
page 2-96
cellstr
Create cell array of strings from character array
page 2-100
cell2struct
Cell array to structure array conversion
page 2-97
celldisp
Display cell array contents.
page 2-98
cellplot
Graphically display the structure of cell arrays
page 2-99
num2cell
Convert a numeric array into a cell array
page 2-502
Multidimensional Array Functions
cat
Concatenate arrays
page 2-90
flipdim
Flip array along a specified dimension
page 2-275
ind2sub
Subscripts from linear index
page 2-390
ipermute
Inverse permute the dimensions of a multidimensional array
page 2-418
ndgrid
Generate arrays for multidimensional functions and interpolation
page 2-491
ndims
Number of array dimensions
page 2-492
permute
Rearrange the dimensions of a multidimensional array
page 2-542
reshape
Reshape array
page 2-601
shiftdim
Shift dimensions
page 2-628
squeeze
Remove singleton dimensions
page 2-670
sub2ind
Single index from subscripts
page 2-693
Graphical Visualization
bar
Vertical bar chart
barh
Horizontal bar chart
hist
Plot histograms
hold
Hold current graph
loglog
Plot using log-log scales
pie
Pie plot
plot
Plot vectors or matrices.
polar
Polar coordinate plot
semilogx
Semi-log scale plot
semilogy
Semi-log scale plot
subplot
Create axes in tiled positions
bar3
Vertical 3-D bar chart
bar3h
Horizontal 3-D bar chart
comet3
3-D comet plot
cylinder
Generate cylinder
fill3
Draw filled 3-D polygons in 3-space
plot3
Plot lines and points in 3-D space
quiver3
3-D quiver (or velocity) plot
slice
Volumetric slice plot
sphere
Generate sphere
stem3
Plot discrete surface data
waterfall
Waterfall plot
clabel
Add contour labels to a contour plot
datetick
Date formatted tick labels
grid
Grid lines for 2-D and 3-D plots
gtext
Place text on a 2-D graph using a mouse
legend
Graph legend for lines and patches
plotyy
Plot graphs with Y tick labels on the left and right
title
Titles for 2-D and 3-D plots
xlabel
X-axis labels for 2-D and 3-D plots
ylabel
Y-axis labels for 2-D and 3-D plots
zlabel
Z-axis labels for 3-D plots
Surface, Mesh, and Contour Plots
contour
Contour (level curves) plot
contourc
Contour computation
contourf
Filled contour plot
hidden
Mesh hidden line removal mode
meshc
Combination mesh/contourplot
mesh
3-D mesh with reference plane
peaks
A sample function of two variables
surf
3-D shaded surface graph
surface
Create surface low-level objects
surfc
Combination surf/contourplot
surfl
3-D shaded surface with lighting
trimesh
Triangular mesh plot
trisurf
Triangular surface plot
griddata
Data gridding and surface fitting
meshgrid
Generation of X and Y arrays for 3-D plots
area
Area plot
box
Axis box for 2-D and 3-D plots
comet
Comet plot
compass
Compass plot
errorbar
Plot graph with error bars
ezplot
Easy to use function plotter
feather
Feather plot
fill
Draw filled 2-D polygons
fplot
Plot a function
pareto
Pareto chart
pie3
3-D pie plot
plotmatrix
Scatter plot matrix
pcolor
Pseudocolor (checkerboard) plot
rose
Plot rose or angle histogram
quiver
Quiver (or velocity) plot
ribbon
Ribbon plot
stairs
Stairstep graph
scatter
Scatter plot
scatter3
3-D scatter plot
stem
Plot discrete sequence data
convhull
Convex hull
delaunay
Delaunay triangulation
dsearch
Search Delaunay triangulation for nearest point
inpolygon
True for points inside a polygonal region
polyarea
Area of polygon
tsearch
Search for enclosing Delaunay triangle
voronoi
Voronoi diagram
camdolly
Move camera position and target
camlookat
View specific objects
camorbit
Orbit about camera target
campan
Rotate camera target about camera position
campos
Set or get camera position
camproj
Set or get projection type
camroll
Rotate camera about viewing axis
camtarget
Set or get camera target
camup
Set or get camera up-vector
camva
Set or get camera view angle
camzoom
Zoom camera in or out
daspect
Set or get data aspect ratio
pbaspect
Set or get plot box aspect ratio
view
3-D graph viewpoint specification.
viewmtx
Generate view transformation matrices
xlim
Set or get the current x-axis limits
ylim
Set or get the current y-axis limits
zlim
Set or get the current z-axis limits
camlight
Cerate or position Light
diffuse
Diffuse reflectance
lighting
Lighting mode
material
Material reflectance mode
specular
Specular reflectance
brighten
Brighten or darken color map
bwcontr
Contrasting black and/or color
caxis
Pseudocolor axis scaling
colorbar
Display color bar (color scale)
colorcube
Enhanced color-cube color map
colordef
Set up color defaults
colormap
Set the color look-up table
graymon
Graphics figure defaults set for grayscale monitor
hsv2rgb
Hue-saturation-value to red-green-blue conversion
rgb2hsv
RGB to HSVconversion
rgbplot
Plot color map
shading
Color shading mode
spinmap
Spin the colormap
surfnorm
3-D surface normals
whitebg
Change axes background color for plots
autumn
Shades of red and yellow color map
bone
Gray-scale with a tinge of blue color map
contrast
Gray color map to enhance image contrast
cool
Shades of cyan and magenta color map
copper
Linear copper-tone color map
flag
Alternating red, white, blue, and black color map
gray
Linear gray-scale color map
hot
Black-red-yellow-white color map
hsv
Hue-saturation-value (HSV) color map
jet
Variant of HSV
lines
Line color colormap
prism
Colormap of prism colors
spring
Shades of magenta and yellow color map
summer
Shades of green and yellow colormap
winter
Shades of blue and green color map
frameedit
Create or edit printframes
hardcopy
Save figure window to file
orient
Hardcopy paper orientation
print
Print graph or save graph to file
printopt
Configure local printer defaults
savtoner
Modify graphic objects to print on a white background
copyobj
Make a copy of a graphics object and its children
findobj
Find objects with specified property values
gcbo
Return object whose callback is currently executing
gco
Return handle of current object
get
Get object properties
rotate
Rotate objects about specified origin and direction
ishandle
True for graphics objects
set
Set object properties
Handle Graphics, Object Creation
axes
Create Axes object
figure
Create Figure (graph) windows
image
Create Image (2-D matrix)
light
Create Light object (illuminates Patch and Surface)
line
Create Line object (3-D polylines)
patch
Create Patch object (polygons)
Create Surface (quadrilaterals)
text
Create Text object (character strings)
Create context menu (popup associated with object)
Handle Graphics, Figure Windows
capture
Screen capture of the current figure
clc
Clear figure window
clf
Clear figure
clg
Clear figure (graph window)
close
Close specified window
gcf
Get current figure handle
newplot
Graphics M-file preamble for NextPlot
property
refresh
Refresh figure
axis
Plot axis scaling and appearance
cla
Clear Axes
gca
Get current Axes handle
propedit
Edit all properties of any selected object
reset
Reset axis or figure
rotate3d
Interactively rotate the view of a 3-D plot
selectmoveresize
Interactively select, move, or resize objects
shg
Show graph window
ginput
Graphical input from a mouse or cursor
zoom
Zoom in and out on a 2-D plot
dragrect
Drag XOR rectangles with mouse
drawnow
Complete any pending drawing
rbbox
Rubberband box
Graphical User Interface Creation
Dialog Boxes
dialog
Create a dialog box
errordlg
Create error dialog box
helpdlg
Display help dialog box
inputdlg
Create input dialog box
listdlg
Create list selection dialog box
msgbox
Create message dialog box
pagedlg
Display page layout dialog box
printdlg
Display print dialog box
questdlg
Create question dialog box
uigetfile
Display dialog box to retrieve name of file for reading
uiputfile
Display dialog box to retrieve name of file for writing
uisetcolor
Interactively set a ColorSpec
using a dialog box
uisetfont
Interactively set a font using a dialog box
warndlg
Create warning dialog box
User Interface Objects
menu
Generate a menu of choices for user input
menuedit
Menu editor
uicontextmenu
Create context menu
uicontrol
Create user interface control
uimenu
Create user interface menu
Other Functions
dragrect
Drag rectangles with mouse
gcbo
Return handle of object whose callback is executing
rbbox
Create rubberband box for area selection
selectmoveresize
Select, move, resize, or copy Axes and Uicontrol graphics objects
textwrap
Return wrapped string matrix for given Uicontrol
uiresume
Used with uiwait
, controls program execution
uiwait
Used with uiresume
, controls program execution
waitbar
Display wait bar
waitforbuttonpress
Wait for key/buttonpress over figure