Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Language Fundamentals
Entering Commands
a n s c l c d i a r y f o r m a t h o m e i s k e y w o r d m o r e c o m m a n d h i s t o r y c o m m a n d w i n d o w Most recent answ er Clear Command Window Save Command Window text to file Set display format for output Send cursor home Determine w hether input is MATLAB keyw ord Control paged output for Command Window Open Command History w indow , or select it if already open Open Command Window , or select it if already open
Indexing c o l o n e n d i n d 2 s u b s u b 2 i n d Create vectors, array subscripting, and for-loop iterators Terminate block of code, or indicate last array index Subscripts from linear index Convert subscripts to linear indices
Array Dim ensions l e n g t h n d i m s n u m e l s i z e h e i g h t w i d t h i s c o l u m n i s e m p t y i s m a t r i x i s r o w i s s c a l a r i s v e c t o r Length of vector or largest array dimension Number of array dimensions Number of array elements Array dimensions Number of table row s Number of table variables Determine w hether input is column vector Determine w hether array is empty Determine w hether input is matrix Determine w hether input is row vector Determine w hether input is scalar Determine w hether input is vector
Sorting and Reshaping Arrays b l k d i a g c i r c s h i f t c t r a n s p o s e d i a g f l i p f l i p d i m f l i p l r f l i p u d i p e r m u t e p e r m u t e r e p m a t r e s h a p e r o t 9 0 s h i f t d i m i s s o r t e d s o r t s o r t r o w s s q u e e z e t r a n s p o s e v e c t o r i z e Construct block diagonal matrix from input arguments Shift array circularly Complex conjugate transpose Diagonal matrices and diagonals of matrix Flip order of elements Flip array along specified dimension Flip matrix left to right Flip matrix up to dow n Inverse permute dimensions of N-D array Rearrange dimensions of N-D array Replicate and tile array Reshape array Rotate matrix 90 degrees Shift dimensions Determine w hether set elements are in sorted order Sort array elements in ascending or descending order Sort row s in ascending order Remove singleton dimensions Transpose Vectorize expression
u m i n u s t i m e s r d i v i d e l d i v i d e p o w e r m t i m e s m r d i v i d e m l d i v i d e m p o w e r c u m p r o d c u m s u m d i f f p r o d s u m c e i l f i x f l o o r i d i v i d e m o d r e m r o u n d
Unary minus Element-w ise multiplication Right array division Left array division Element-w ise pow er Matrix Multiplication Solve systems of linear equations xA = B for x Solve systems of linear equations Ax = B for x Matrix pow er Cumulative product Cumulative sum Differences and Approximate Derivatives Product of array elements Sum of array elements Round tow ard positive infinity Round tow ard zero Round tow ard negative infinity Integer division w ith rounding option Modulus after division Remainder after division Round to nearest integer
Relational Operations R e l a t i o n a lO p e r a t o r s e q g e g t l e l t n e i s e q u a l i s e q u a l n Relational operations Determine equality Determine greater than or equal to Determine greater than Determine less than or equal to Determine less than Determine inequality Determine array equality Determine array equality, treating NaN values as equal
Logical Operations L o g i c a lO p e r a t o r s : E l e m e n t w i s e L o g i c a lO p e r a t o r s :S h o r t c i r c u i t a n d n o t o r x o r Find logical AND of array or scalar inputs Find logical NOT of array or scalar input Find logical OR of array or scalar inputs Logical exclusive-OR Logical operations, w ith short-circuiting capability Elementw ise logical operations on arrays
a l l a n y f a l s e f i n d i s l o g i c a l l o g i c a l t r u e
Determine if all array elements are nonzero or true Determine if any array elements are nonzero Logical 0 (false) Find indices and values of nonzero elements Determine if input is logical array Convert numeric values to logicals Logical 1 (true)
Set Operations i n t e r s e c t i s m e m b e r i s s o r t e d s e t d i f f s e t x o r u n i o n u n i q u e j o i n i n n e r j o i n o u t e r j o i n Set intersection of tw o arrays Array elements that are members of set array Determine w hether set elements are in sorted order Set difference of tw o arrays Set exclusive OR of tw o arrays Set union of tw o arrays Unique values in array Merge tw o tables by matching up row s using key variables Inner join betw een tw o tables Outer join betw een tw o tables
Bit-Wise Operations b i t a n d b i t c m p b i t g e t b i t o r b i t s e t b i t s h i f t b i t x o r s w a p b y t e s Bit-w ise AND Bit-w ise complement Get bit at specified position Bit-w ise OR Set bit at specific location Shift bits specified number of places Bit-w ise XOR Sw ap byte ordering
Special Characters
S p e c i a lC h a r a c t e r s c o l o n Special characters Create vectors, array subscripting, and for-loop iterators
Data Types
Num eric Types d o u b l e s i n g l e i n t 8 i n t 1 6 Convert to double precision Convert to single precision Convert to 8-bit signed integer Convert to 16-bit signed integer
i n t 3 2 i n t 6 4 u i n t 8 u i n t 1 6 u i n t 3 2 u i n t 6 4 c a s t t y p e c a s t i s i n t e g e r i s f l o a t i s n u m e r i c i s r e a l i s f i n i t e i s i n f i s n a n e p s f l i n t m a x I n f i n t m a x i n t m i n N a N r e a l m a x r e a l m i n
Convert to 32-bit signed integer Convert to 64-bit signed integer Convert to 8-bit unsigned integer Convert to 16-bit unsigned integer Convert to 32-bit unsigned integer Convert to 64-bit unsigned integer Cast variable to different data type Convert data types w ithout changing underlying data Determine if input is integer array Determine if input is floating-point array Determine if input is numeric array Check if input is real array Array elements that are finite Array elements that are infinite Array elements that are NaN Floating-point relative accuracy Largest consecutive integer in floating-point format Infinity Largest value of specified integer type Smallest value of specified integer type Not-a-Number Largest positive floating-point number Smallest positive normalized floating-point number
Characters and Strings Create and Concatenate Strings b l a n k s c e l l s t r c h a r i s c e l l s t r i s c h a r s p r i n t f s t r c a t s t r j o i n Create string of blank characters Create cell array of strings from character array Convert to character array (string) Determine w hether input is cell array of strings Determine w hether item is character array Format data into string Concatenate strings horizontally Join strings in cell array into single string
Parse Strings i s c h a r i s l e t t e r i s s p a c e i s s t r p r o p s s c a n f s t r f i n d Determine w hether item is character array Array elements that are alphabetic letters Array elements that are space characters Determine w hether string is of specified category Read formatted data from string Find one string w ithin another
s t r r e p s t r s p l i t s t r t o k v a l i d a t e s t r i n g s y m v a r r e g e x p r e g e x p i r e g e x p r e p r e g e x p t r a n s l a t e
Find and replace substring Split string at specified delimiter Selected parts of string Check validity of text string Determine symbolic variables in expression Match regular expression (case sensitive) Match regular expression (case insensitive) Replace string using regular expression Translate string into regular expression
Com pare Strings s t r c m p s t r c m p i s t r n c m p s t r n c m p i Compare strings w ith case sensitivity Compare strings (case insensitive) Compare first n characters of strings (case sensitive) Compare first n characters of strings (case insensitive)
Change String Case, Blanks, and Justification b l a n k s d e b l a n k s t r t r i m l o w e r u p p e r s t r j u s t Create string of blank characters Strip trailing blanks from end of string Remove leading and trailing w hite space from string Convert string to low ercase Convert string to uppercase Justify character array
Categorical Arrays c a t e g o r i c a l i s c a t e g o r i c a l c a t e g o r i e s i s c a t e g o r y i s o r d i n a l i s p r o t e c t e d a d d c a t s m e r g e c a t s r e m o v e c a t s r e n a m e c a t s r e o r d e r c a t s s u m m a r y c o u n t c a t s i s u n d e f i n e d Create categorical array Determine w hether input is categorical array Categories of categorical array Test for categorical array categories Determine w hether input is ordinal categorical array Determine w hether categories of categorical array are protected Add categories to categorical array Merge categories in categorical array Remove categories from categorical array Rename categories in categorical array Reorder categories in categorical array Print summary of table or categorical array Count occurrences of categorical array elements by category Find undefined elements in categorical array
Tables
t a b l e a r r a y 2 t a b l e c e l l 2 t a b l e s t r u c t 2 t a b l e t a b l e 2 a r r a y t a b l e 2 c e l l t a b l e 2 s t r u c t r e a d t a b l e w r i t e t a b l e i s t a b l e h e i g h t w i d t h s u m m a r y i n t e r s e c t i s m e m b e r s e t d i f f s e t x o r u n i q u e u n i o n j o i n i n n e r j o i n o u t e r j o i n s o r t r o w s s t a c k u n s t a c k i s m i s s i n g s t a n d a r d i z e M i s s i n g v a r f u n r o w f u n
Create table from w orkspace variables Convert homogeneous array to table Convert cell array to table Convert structure array to table Convert table to homogenous array Convert table to cell array Convert table to structure array Create table from file Write table to file Determine w hether input is table Number of table row s Number of table variables Print summary of table or categorical array Set intersection of tw o arrays Array elements that are members of set array Set difference of tw o arrays Set exclusive OR of tw o arrays Unique values in array Set union of tw o arrays Merge tw o tables by matching up row s using key variables Inner join betw een tw o tables Outer join betw een tw o tables Sort row s in ascending order Stack data from multiple variables into single variable Unstack data from single variable into multiple variables Find table elements w ith missing values Insert missing value indicators into table Apply function to table variables Apply function to table row s
Structures s t r u c t f i e l d n a m e s g e t f i e l d i s f i e l d i s s t r u c t o r d e r f i e l d s r m f i e l d s e t f i e l d a r r a y f u n s t r u c t f u n c e l l 2 s t r u c t Create structure array Field names of structure, or public fields of object Field of structure array Determine w hether input is structure array field Determine w hether input is structure array Order fields of structure array Remove fields from structure Assign values to structure array field Apply function to each element of array Apply function to each field of scalar structure Convert cell array to structure array
s t r u c t 2 c e l l
Cell Arrays c e l l c e l l 2 m a t c e l l 2 s t r u c t c e l l d i s p c e l l f u n c e l l p l o t c e l l s t r i s c e l l i s c e l l s t r m a t 2 c e l l n u m 2 c e l l s t r j o i n s t r s p l i t s t r u c t 2 c e l l Create cell array Convert cell array to numeric array Convert cell array to structure array Cell array contents Apply function to each cell in cell array Graphically display structure of cell array Create cell array of strings from character array Determine w hether input is cell array Determine w hether input is cell array of strings Convert array to cell array w ith potentially different sized cells Convert array to cell array w ith consistently sized cells Join strings in cell array into single string Split string at specified delimiter Convert structure to cell array
Function Handles f u n c t i o n _ h a n d l e( @ ) f e v a l f u n c 2 s t r s t r 2 f u n c l o c a l f u n c t i o n s f u n c t i o n s Handle used in calling functions indirectly Evaluate function Construct function name string from function handle Construct function handle from function name string Function handles to all local functions in MATLAB file Information about function handle
Map Containers c o n t a i n e r s . M a p i s K e y k e y s r e m o v e v a l u e s Map values to unique keys Determine if containers.Map object contains key Identify keys of containers.Map object Remove key-value pairs from containers.Map object Identify values in containers.Map object
Tim e Series Tim e Series Basics a p p e n d g e t g e t d a t a s a m p l e s i z e g e t q u a l i t y d e s c g e t s a m p l e s Concatenate time series objects in time dimension Query timeseries object property values Size of data sample in timeseries object Data quality descriptions Subset of time series samples using subscripted index array
p l o t s e t t s d a t a . e v e n t t i m e s e r i e s
Plot time series Set properties of timeseries object Construct event object for timeseries object Create timeseries object
Data Manipulation a d d s a m p l e c t r a n s p o s e d e l s a m p l e d e t r e n d f i l t e r g e t a b s t i m e g e t i n t e r p m e t h o d g e t s a m p l e u s i n g t i m e i d e a l f i l t e r r e s a m p l e s e t a b s t i m e s e t i n t e r p m e t h o d s y n c h r o n i z e t r a n s p o s e Add data sample to timeseries object Transpose timeseries object Remove sample from timeseries object Subtract mean or best-fit line and all NaNs from timeseries object Shape frequency content of time-series Extract date-string time vector into cell array Interpolation method for timeseries object Extract data samples into new timeseries object Apply ideal (noncausal) filter to timeseries object Select or interpolate timeseries data using new time vector Set times of timeseries object as date strings Set default interpolation method for timeseries object Synchronize and resample tw o timeseries objects using common time vector Transpose timeseries object
Event Data a d d e v e n t d e l e v e n t g e t t s a f t e r a t e v e n t g e t t s a f t e r e v e n t g e t t s a t e v e n t g e t t s b e f o r e a t e v e n t g e t t s b e f o r e e v e n t g e t t s b e t w e e n e v e n t s Add event to timeseries object Remove tsdata.event objects from timeseries object New timeseries object w ith samples occurring at or after event New timeseries object w ith samples occurring after event New timeseries object w ith samples occurring at event New timeseries object w ith samples occurring before or at event New timeseries object w ith samples occurring before event New timeseries object w ith samples occurring betw een events
Descriptive Statistics i q r m a x m e a n m e d i a n m i n s t d s u m v a r Interquartile range of timeseries data Maximum value of timeseries data Mean value of timeseries data Median value of timeseries data Minimum value of timeseries data Standard deviation of timeseries data Sum of timeseries data Variance of timeseries data
Tim e Series Collections g e t( t s c o l l e c t i o n ) i s e m p t y( t s c o l l e c t i o n ) l e n g t h( t s c o l l e c t i o n ) p l o t s e t( t s c o l l e c t i o n ) s i z e( t s c o l l e c t i o n ) t s c o l l e c t i o n a d d s a m p l e t o c o l l e c t i o n a d d t s d e l s a m p l e f r o m c o l l e c t i o n g e t a b s t i m e( t s c o l l e c t i o n ) g e t s a m p l e u s i n g t i m e ( t s c o l l e c t i o n ) g e t t i m e s e r i e s n a m e s h o r z c a t( t s c o l l e c t i o n ) r e m o v e t s r e s a m p l e( t s c o l l e c t i o n ) s e t a b s t i m e( t s c o l l e c t i o n ) s e t t i m e s e r i e s n a m e s v e r t c a t( t s c o l l e c t i o n ) Cell array of names of timeseries objects in tscollection object Horizontal concatenation for tscollection objects Remove timeseries objects from tscollection object Select or interpolate data in tscollection using new time vector Set times of tscollection object as date strings Change name of timeseries object in tscollection Vertical concatenation for tscollection objects Query tscollection object property values Determine w hether tscollection object is empty Length of time vector Plot time series Set properties of tscollection object Size of tscollection object Create tscollection object Add sample to tscollection object Add timeseries object to tscollection object Remove sample from tscollection object Extract date-string time vector into cell array Extract data samples into new tscollection object
Data Type Identification i s * i s a i s c a t e g o r i c a l i s c e l l i s c e l l s t r i s c h a r i s f i e l d i s f l o a t i s h g h a n d l e i s i n t e g e r i s j a v a i s l o g i c a l i s n u m e r i c i s o b j e c t i s r e a l i s s c a l a r i s s t r i s s t r u c t i s t a b l e Detect state Determine if input is object of specified class Determine w hether input is categorical array Determine w hether input is cell array Determine w hether input is cell array of strings Determine w hether item is character array Determine w hether input is structure array field Determine if input is floating-point array True for Handle Graphics object handles Determine if input is integer array Determine if input is Java object Determine if input is logical array Determine if input is numeric array Determine if input is MATLAB object Check if input is real array Determine w hether input is scalar Determine w hether input is character array Determine w hether input is structure array Determine w hether input is table
i s v e c t o r c l a s s v a l i d a t e a t t r i b u t e s w h o s
Determine w hether input is vector Determine class of object Check validity of array List variables in w orkspace, w ith sizes and types
Data Type Conversion c h a r i n t 2 s t r m a t 2 s t r n u m 2 s t r s t r 2 d o u b l e s t r 2 n u m n a t i v e 2 u n i c o d e u n i c o d e 2 n a t i v e b a s e 2 d e c b i n 2 d e c d e c 2 b a s e d e c 2 b i n d e c 2 h e x h e x 2 d e c h e x 2 n u m n u m 2 h e x t a b l e 2 a r r a y t a b l e 2 c e l l t a b l e 2 s t r u c t a r r a y 2 t a b l e c e l l 2 t a b l e s t r u c t 2 t a b l e c e l l 2 m a t c e l l 2 s t r u c t c e l l s t r m a t 2 c e l l n u m 2 c e l l s t r u c t 2 c e l l Convert to character array (string) Convert integer to string Convert matrix to string Convert number to string Convert string to double-precision value Convert string to number Convert numeric bytes to Unicode character representation Convert Unicode character representation to numeric bytes Convert base N number string to decimal number Convert binary number string to decimal number Convert decimal to base N number in string Convert decimal to binary number in string Convert decimal to hexadecimal number in string Convert hexadecimal number string to decimal number Convert hexadecimal number string to double-precision number Convert singles and doubles to IEEE hexadecimal strings Convert table to homogenous array Convert table to cell array Convert table to structure array Convert homogeneous array to table Convert cell array to table Convert structure array to table Convert cell array to numeric array Convert cell array to structure array Create cell array of strings from character array Convert array to cell array w ith potentially different sized cells Convert array to cell array w ith consistently sized cells Convert structure to cell array
c a l e n d a r e o m d a y w e e k d a y a d d t o d a t e e t i m e
Calendar for specified month Last day of month Day of w eek Modify date number by field Time elapsed betw een date vectors
Mathematics
Elementary Math
Arithm etic p l u s u p l u s m i n u s u m i n u s t i m e s r d i v i d e l d i v i d e p o w e r m t i m e s m r d i v i d e m l d i v i d e m p o w e r c u m p r o d c u m s u m d i f f p r o d s u m c e i l f i x f l o o r i d i v i d e m o d r e m r o u n d Addition Unary plus Subtraction Unary minus Element-w ise multiplication Right array division Left array division Element-w ise pow er Matrix Multiplication Solve systems of linear equations xA = B for x Solve systems of linear equations Ax = B for x Matrix pow er Cumulative product Cumulative sum Differences and Approximate Derivatives Product of array elements Sum of array elements Round tow ard positive infinity Round tow ard zero Round tow ard negative infinity Integer division w ith rounding option Modulus after division Remainder after division Round to nearest integer
Trigonom etry s i n s i n d a s i n a s i n d s i n h a s i n h Sine of argument in radians Sine of argument in degrees Inverse sine in radians Inverse sine in degrees Hyperbolic sine of argument in radians Inverse hyperbolic sine
c o s c o s d a c o s a c o s d c o s h a c o s h t a n t a n d a t a n a t a n d a t a n 2 a t a n 2 d t a n h a t a n h c s c c s c d a c s c a c s c d c s c h a c s c h s e c s e c d a s e c a s e c d s e c h a s e c h c o t c o t d a c o t a c o t d c o t h a c o t h h y p o t
Cosine of argument in radians Cosine of argument in degrees Inverse cosine in radians Inverse cosine in degrees Hyperbolic cosine Inverse hyperbolic cosine Tangent of argument in radians Tangent of argument in degrees Inverse tangent in radians Inverse tangent in degrees Four-quadrant inverse tangent Four-quadrant inverse tangent in degrees Hyperbolic tangent Inverse hyperbolic tangent Cosecant of argument in radians Cosecant of argument in degrees Inverse cosecant in radians Inverse cosecant in degrees Hyperbolic cosecant Inverse hyperbolic cosecant Secant of argument in radians Secant of argument in degrees Inverse secant in radians Inverse secant in degrees Hyperbolic secant Inverse hyperbolic secant Cotangent of argument in radians Cotangent of argument in degrees Inverse cotangent in radians Inverse cotangent in degrees Hyperbolic cotangent Inverse hyperbolic cotangent Square root of sum of squares
Exponents and Logarithm s e x p e x p m 1 l o g l o g 1 0 l o g 1 p l o g 2 n e x t p o w 2 Exponential Compute exp(x)-1 accurately for small values of x Natural logarithm Common (base 10) logarithm Compute log(1+x) accurately for small values of x Base 2 logarithm and dissect floating-point numbers into exponent and mantissa Exponent of next higher pow er of 2
n t h r o o t p o w 2 r e a l l o g r e a l p o w r e a l s q r t s q r t
Real nth root of real numbers Base 2 pow er and scale floating-point numbers Natural logarithm for nonnegative real arrays Array pow er for real-only output Square root for nonnegative real arrays Square root
Com plex Num bers a b s a n g l e c o m p l e x c o n j c p l x p a i r i i m a g i s r e a l j r e a l s i g n u n w r a p Absolute value and complex magnitude Phase angle Construct complex data from real and imaginary components Complex conjugate Sort complex numbers into complex conjugate pairs Imaginary unit Imaginary part of complex number Check if input is real array Imaginary unit Real part of complex number Signum function Correct phase angles to produce smoother phase plots
Discrete Math f a c t o r f a c t o r i a l g c d i s p r i m e l c m n c h o o s e k p e r m s p r i m e s r a t ,r a t s Prime factors Factorial of input Greatest common divisor Determine w hich array elements are prime Least common multiple Binomial coefficient or all combinations All possible permutations Prime numbers less than or equal to input value Rational fraction approximation
Polynom ials p o l y p o l y d e r p o l y e i g p o l y f i t p o l y i n t p o l y v a l p o l y v a l m r e s i d u e Polynomial w ith specified roots Polynomial derivative Polynomial eigenvalue problem Polynomial curve fitting Integrate polynomial analytically Polynomial evaluation Matrix polynomial evaluation Convert betw een partial fraction expansion and polynomial coefficients
r o o t s
Polynomial roots
Special Functions a i r y b e s s e l h b e s s e l i b e s s e l j b e s s e l k b e s s e l y b e t a b e t a i n c b e t a i n c i n v b e t a l n e l l i p j e l l i p k e e r f e r f c e r f c i n v e r f c x e r f i n v e x p i n t g a m m a g a m m a i n c g a m m a i n c i n v g a m m a l n l e g e n d r e p s i Airy Functions Bessel function of third kind (Hankel function) Modified Bessel function of first kind Bessel function of first kind Modified Bessel function of second kind Bessel function of second kind Beta function Incomplete beta function Beta inverse cumulative distribution function Logarithm of beta function Jacobi elliptic functions Complete elliptic integrals of first and second kind Error function Complementary error function Inverse complementary error function Scaled complementary error function Inverse error function Exponential integral Gamma function Incomplete gamma function Inverse incomplete gamma function Logarithm of gamma function Associated Legendre functions Psi (polygamma) function
Cartesian Coordinate System Conversion c a r t 2 p o l c a r t 2 s p h p o l 2 c a r t s p h 2 c a r t Transform Cartesian coordinates to polar or cylindrical Transform Cartesian coordinates to spherical Transform polar or cylindrical coordinates to Cartesian Transform spherical coordinates to Cartesian
Constants and Test Matrices e p s f l i n t m a x i j I n f Floating-point relative accuracy Largest consecutive integer in floating-point format Imaginary unit Imaginary unit Infinity
p i N a N i s f i n i t e i s i n f i s n a n c o m p a n g a l l e r y h a d a m a r d h a n k e l h i l b i n v h i l b m a g i c p a s c a l r o s s e r t o e p l i t z v a n d e r w i l k i n s o n
Ratio of circle's circumference to its diameter Not-a-Number Array elements that are finite Array elements that are infinite Array elements that are NaN Companion matrix Test matrices Hadamard matrix Hankel matrix Hilbert matrix Inverse of Hilbert matrix Magic square Pascal matrix Classic symmetric eigenvalue test problem Toeplitz matrix Vandermonde matrix Wilkinson's eigenvalue test matrix
Linear Algebra
Matrix Operations c r o s s d o t k r o n s u r f n o r m t r i l t r i u t r a n s p o s e Vector cross product Vector dot product Kronecker tensor product Compute and display 3-D surface normals Low er triangular part of matrix Upper triangular part of matrix Transpose
Linear Equations c o n d c o n d e s t f u n m i n v l i n s o l v e l s c o v l s q n o n n e g p i n v r c o n d m l d i v i d e m r d i v i d e Condition number w ith respect to inversion 1-norm condition number estimate Evaluate general matrix function Matrix inverse Solve linear system of equations Least-squares solution in presence of know n covariance Solve nonnegative least-squares constraints problem Moore-Penrose pseudoinverse of matrix Matrix reciprocal condition number estimate Solve systems of linear equations Ax = B for x Solve systems of linear equations xA = B for x
Matrix Decom position c h o l i c h o l c h o l u p d a t e i l u l u q r q r d e l e t e q r i n s e r t q r u p d a t e p l a n e r o t l d l c d f 2 r d f r s f 2 c s f g s v d s v d Cholesky factorization Incomplete Cholesky factorization Rank 1 update to Cholesky factorization Sparse incomplete LU factorization LU matrix factorization Orthogonal-triangular decomposition Remove column or row from QR factorization Insert column or row into QR factorization Rank 1 update to QR factorization Givens plane rotation Block LDL' factorization for Hermitian indefinite matrices Convert complex diagonal form to real block diagonal form Convert real Schur form to complex Schur form Generalized singular value decomposition Singular value decomposition
Eigenvalues and Singular Values b a l a n c e c d f 2 r d f c o n d e i g e i g e i g s g s v d h e s s o r d e i g o r d q z o r d s c h u r p o l y p o l y e i g q z r s f 2 c s f s c h u r s q r t m s s 2 t f s v d s v d s Diagonal scaling to improve eigenvalue accuracy Convert complex diagonal form to real block diagonal form Condition number w ith respect to eigenvalues Eigenvalues and eigenvectors Largest eigenvalues and eigenvectors of matrix Generalized singular value decomposition Hessenberg form of matrix Eigenvalues of quasitriangular matrices Reorder eigenvalues in QZ factorization Reorder eigenvalues in Schur factorization Polynomial w ith specified roots Polynomial eigenvalue problem QZ factorization for generalized eigenvalues Convert real Schur form to complex Schur form Schur decomposition Matrix square root Convert state-space filter parameters to transfer function form Singular value decomposition Find singular values and vectors
Matrix Analysis c o n d c o n d e i g Condition number w ith respect to inversion Condition number w ith respect to eigenvalues
d e t n o r m n o r m e s t n u l l o r t h r a n k r c o n d r r e f s u b s p a c e t r a c e
Matrix determinant Vector and matrix norms 2-norm estimate Null space Orthonormal basis for range of matrix Rank of matrix Matrix reciprocal condition number estimate Reduced row echelon form Angle betw een tw o subspaces Sum of diagonal elements
Matrix Functions e x p m l o g m s q r t m b s x f u n a r r a y f u n a c c u m a r r a y m p o w e r Matrix exponential Matrix logarithm Matrix square root Apply element-by-element binary operation to tw o arrays w ith singleton expansion enabled Apply function to each element of array Construct array w ith accumulation Matrix pow er
Random Num ber Generation r a n d r a n d n r a n d i r a n d p e r m r n g R a n d S t r e a m Uniformly distributed pseudorandom numbers Normally distributed pseudorandom numbers Uniformly distributed pseudorandom integers Random permutation Control random number generation Random number stream
Interpolation
1-D Interpolation i n t e r p 1 g r i d d e d I n t e r p o l a n t p c h i p s p l i n e p p v a l m k p p u n m k p p p a d e c o e f i n t e r p f t 1-D data interpolation (table lookup) Gridded data interpolation Piecew ise Cubic Hermite Interpolating Polynomial (PCHIP) Cubic spline data interpolation Evaluate piecew ise polynomial Make piecew ise polynomial Piecew ise polynomial details Pad approximation of time delays 1-D interpolation using FFT method
Gridded Data Interpolation i n t e r p 2 i n t e r p 3 i n t e r p n g r i d d e d I n t e r p o l a n t n d g r i d m e s h g r i d Interpolation for 2-D gridded data in meshgrid format Interpolation for 3-D gridded data in meshgrid format Interpolation for 1-D, 2-D, 3-D, and N-D gridded data in ndgrid format Gridded data interpolation Rectangular grid in N-D space Rectangular grid in 2-D and 3-D space
Scattered Data Interpolation g r i d d a t a g r i d d a t a n s c a t t e r e d I n t e r p o l a n t Interpolate scattered data Data gridding and hypersurface fitting (dimension 2) Scattered data interpolation
Optimization
f m i n b n d f m i n s e a r c h f z e r o l s q n o n n e g o p t i m g e t o p t i m s e t Find minimum of single-variable function on fixed interval Find minimum of unconstrained multivariable function using derivative-free method Root of nonlinear function Solve nonnegative least-squares constraints problem Optimization options values Create or edit optimization options structure
o d e 2 3 t o d e 2 3 t b o d e 2 3 s o d e 1 5 i d e c i c o d e x t e n d o d e g e t o d e s e t d e v a l
Solve moderately stiff ODEs and DAEs; trapezoidal rule Solve stiff differential equations; low order method Solve stiff differential equations; low order method Solve fully implicit differential equations, variable order method Compute consistent initial conditions for ode15i Extend solution of initial value problem for ordinary differential equation Ordinary differential equation options parameters Create or alter options structure for ordinary differential equation solvers Evaluate solution of differential equation problem
Boundary Value Problem s b v p 4 c b v p 5 c b v p i n i t b v p x t e n d b v p g e t b v p s e t d e v a l Solve boundary value problems for ordinary differential equations Solve boundary value problems for ordinary differential equations Form initial guess for BVP solvers Form guess structure for extending boundary value solutions Extract properties from options structure created w ith bvpset Create or alter options structure of boundary value problem Evaluate solution of differential equation problem
Delay Differential Equations d d e 2 3 d d e s d d d e n s d d d e g e t d d e s e t d e v a l Solve delay differential equations (DDEs) w ith constant delays Solve delay differential equations (DDEs) w ith general delays Solve delay differential equations (DDEs) of neutral type Extract properties from delay differential equations options structure Create or alter delay differential equations options structure Evaluate solution of differential equation problem
Partial Differential Equations p d e p e p d e v a l Solve initial-boundary value problems for parabolic-elliptic PDEs in 1-D Evaluate numerical solution of PDE using output of pdepe
Num erical Integration and Differentiation i n t e g r a l i n t e g r a l 2 i n t e g r a l 3 q u a d g k q u a d 2 d c u m t r a p z t r a p z p o l y i n t Numerically evaluate integral Numerically evaluate double integral Numerically evaluate triple integral Numerically evaluate integral, adaptive Gauss-Kronrod quadrature Numerically evaluate double integral, tiled method Cumulative trapezoidal numerical integration Trapezoidal numerical integration Integrate polynomial analytically
d e l 2 d i f f g r a d i e n t p o l y d e r
Discrete Laplacian Differences and Approximate Derivatives Numerical gradient Polynomial derivative
Sparse Matrices
Sparse Matrix Creation s p d i a g s s p e y e s p r a n d s p r a n d n s p r a n d s y m s p a r s e s p c o n v e r t Extract and create sparse band and diagonal matrices Sparse identity matrix Sparse uniformly distributed random matrix Sparse normally distributed random matrix Sparse symmetric random matrix Create sparse matrix Import matrix from sparse matrix external format
Sparse Matrix Manipulation i s s p a r s e n n z Determine w hether input is sparse Number of nonzero matrix elements
n o n z e r o s n z m a x s p a l l o c s p f u n s p o n e s s p p a r m s s p y f i n d f u l l
Nonzero matrix elements Amount of storage allocated for nonzero matrix elements Allocate space for sparse matrix Apply function to nonzero sparse matrix elements Replace nonzero sparse matrix elements w ith ones Set parameters for sparse matrix routines Visualize sparsity pattern Find indices and values of nonzero elements Convert sparse matrix to full matrix
Reordering Algorithm s a m d c o l a m d c o l p e r m d m p e r m r a n d p e r m s y m a m d s y m r c m Approximate minimum degree permutation Column approximate minimum degree permutation Sparse column permutation based on nonzero count Dulmage-Mendelsohn decomposition Random permutation Symmetric approximate minimum degree permutation Sparse reverse Cuthill-McKee ordering
Sparse Linear Algebra c o n d e s t e i g s i c h o l i l u n o r m e s t s p a u g m e n t s p r a n k s v d s 1-norm condition number estimate Largest eigenvalues and eigenvectors of matrix Incomplete Cholesky factorization Sparse incomplete LU factorization 2-norm estimate Form least squares augmented system Structural rank Find singular values and vectors
Linear Equations (Iterative Methods) b i c g b i c g s t a b b i c g s t a b l c g s g m r e s l s q r m i n r e s p c g q m r s y m m l q Biconjugate gradients method Biconjugate gradients stabilized method Biconjugate gradients stabilized (l) method Conjugate gradients squared method Generalized minimum residual method (w ith restarts) LSQR method Minimum residual method Preconditioned conjugate gradients method Quasi-minimal residual method Symmetric LQ method
t f q m r
Graph and Tree Algorithm s e t r e e e t r e e p l o t g p l o t s y m b f a c t t r e e l a y o u t t r e e p l o t u n m e s h Elimination tree Plot elimination tree Plot nodes and links representing adjacency matrix Symbolic factorization analysis Lay out tree or forest Plot picture of tree Convert edge matrix to coordinate and Laplacian matrices
Computational Geometry
Triangulation Representation t r i a n g u l a t i o n t e t r a m e s h t r i m e s h t r i p l o t t r i s u r f Triangulation in 2-D or 3-D Tetrahedron mesh plot Triangular mesh plot 2-D triangular plot Triangular surface plot
Delaunay Triangulation d e l a u n a y T r i a n g u l a t i o n d e l a u n a y d e l a u n a y n t e t r a m e s h t r i m e s h t r i p l o t t r i s u r f Delaunay triangulation in 2-D and 3-D Delaunay triangulation N-D Delaunay triangulation Tetrahedron mesh plot Triangular mesh plot 2-D triangular plot Triangular surface plot
Spatial Search t r i a n g u l a t i o n d e l a u n a y T r i a n g u l a t i o n d s e a r c h n t s e a r c h n d e l a u n a y d e l a u n a y n Triangulation in 2-D or 3-D Delaunay triangulation in 2-D and 3-D N-D nearest point search N-D closest simplex search Delaunay triangulation N-D Delaunay triangulation
p a t c h t r i s u r f
Voronoi Diagram p a t c h v o r o n o i v o r o n o i n Create one or more filled polygons Voronoi diagram N-D Voronoi diagram
Elem entary Polygons p o l y a r e a i n p o l y g o n r e c t i n t Area of polygon Points inside polygonal region Rectangle intersection area
Graphics
2-D and 3-D Plots
Line Plots p l o t p l o t y y p l o t 3 l o g l o g s e m i l o g x s e m i l o g y e r r o r b a r f p l o t e z p l o t e z p l o t 3 L i n e S p e c( L i n e S p e c i f i c a t i o n ) C o l o r S p e c( C o l o r S p e c i f i c a t i o n ) Color specification 2-D line plot 2-D line plots w ith y-axes on both left and right side 3-D line plot Log-log scale plot Semilogarithmic plot Semilogarithmic plot Plot error bars along curve Plot function betw een specified limits Easy-to-use function plotter Easy-to-use 3-D parametric curve plotter Line specification string syntax
Pie Charts, Bar Plots, and Histogram s b a r b a r 3 b a r h b a r 3 h h i s t h i s t c r o s e Bar graph Plot 3-D bar graph Plot bar graph horizontally Plot horizontal 3-D bar graph Histogram plot Histogram bin count Angle histogram plot
p a r e t o a r e a p i e p i e 3
Pareto chart Filled area 2-D plot Pie chart 3-D pie chart
Discrete Data Plots s t e m s t a i r s s t e m 3 s c a t t e r s c a t t e r 3 s p y p l o t m a t r i x Plot discrete sequence data Stairstep graph Plot 3-D discrete sequence data scatter plot 3-D scatter plot Visualize sparsity pattern scatter plot matrix
Polar Plots p o l a r r o s e c o m p a s s e z p o l a r L i n e S p e c( L i n e S p e c i f i c a t i o n ) C o l o r S p e c( C o l o r S p e c i f i c a t i o n ) Color specification Polar coordinate plot Angle histogram plot Plot arrow s emanating from origin Easy-to-use polar coordinate plotter Line specification string syntax
Contour Plots c o n t o u r c o n t o u r f c o n t o u r c c o n t o u r 3 c o n t o u r s l i c e e z c o n t o u r e z c o n t o u r f Contour plot of matrix Filled 2-D contour plot Low -level contour plot computation 3-D contour plot Draw contours in volume slice planes Easy-to-use contour plotter Easy-to-use filled contour plotter
Vector Fields f e a t h e r q u i v e r c o m p a s s q u i v e r 3 s t r e a m s l i c e s t r e a m l i n e Plot velocity vectors Quiver or velocity plot Plot arrow s emanating from origin 3-D quiver or velocity plot Plot streamlines in slice planes Plot streamlines from 2-D or 3-D vector data
Surfaces, Volum es, and Polygons Surface and Mesh Plots s u r f s u r f c s u r f a c e s u r f l s u r f n o r m m e s h m e s h c m e s h z w a t e r f a l l r i b b o n c o n t o u r 3 p e a k s c y l i n d e r e l l i p s o i d s p h e r e p c o l o r s u r f 2 p a t c h e z s u r f e z s u r f c e z m e s h e z m e s h c 3-D shaded surface plot Contour plot under a 3-D shaded surface plot Create surface object Surface plot w ith colormap-based lighting Compute and display 3-D surface normals Mesh plot Plot a contour graph under mesh graph Plot a curtain around mesh plot Waterfall plot Ribbon plot 3-D contour plot Example function of tw o variables Generate cylinder Generate ellipsoid Generate sphere Pseudocolor (checkerboard) plot Convert surface data to patch data Easy-to-use 3-D colored surface plotter Easy-to-use combination surface/contour plotter Easy-to-use 3-D mesh plotter Easy-to-use combination mesh/contour plotter
Volum e Visualization c o n t o u r s l i c e f l o w i s o c a p s i s o c o l o r s i s o n o r m a l s i s o s u r f a c e r e d u c e p a t c h r e d u c e v o l u m e s h r i n k f a c e s s l i c e s m o o t h 3 s u b v o l u m e v o l u m e b o u n d s c o n e p l o t c u r l d i v e r g e n c e Draw contours in volume slice planes Simple function of three variables Compute isosurface end-cap geometry Calculate isosurface and patch colors Compute normals of isosurface vertices Extract isosurface data from volume data Reduce number of patch faces Reduce number of elements in volume data set Reduce size of patch faces Volumetric slice plot Smooth 3-D data Extract subset of volume data set Coordinate and color limits for volume data Plot velocity vectors as cones in 3-D vector field Compute curl and angular velocity of vector field Compute divergence of vector field
i n t e r p s t r e a m s p e e d s t r e a m 2 s t r e a m 3 s t r e a m l i n e s t r e a m p a r t i c l e s s t r e a m r i b b o n s t r e a m s l i c e s t r e a m t u b e
Interpolate stream-line vertices from flow speed Compute 2-D streamline data Compute 3-D streamline data Plot streamlines from 2-D or 3-D vector data Plot stream particles 3-D stream ribbon plot from vector volume data Plot streamlines in slice planes Create 3-D stream tube plot
Polygons f i l l f i l l 3 p a t c h s u r f 2 p a t c h Filled 2-D polygons Filled 3-D polygons Create one or more filled polygons Convert surface data to patch data
Anim ation m o v i e n o a n i m a t e d r a w n o w r e f r e s h d a t a f r a m e 2 i m g e t f r a m e i m 2 f r a m e c o m e t c o m e t 3 Play recorded movie frames Change EraseMode of all objects to normal Flush event queue and update figure w indow Refresh data in graph w hen data source is specified Return image data associated w ith movie frame Capture movie frame Convert image to movie frame 2-D comet plot 3-D comet plot
y l i m z l i m b o x g r i d d a s p e c t p b a s p e c t a x e s a x i s s u b p l o t h o l d g c a c l a
Set or query y-axis limits Set or query z-axis limits Axes border Grid lines for 2-D and 3-D plots Set or query axes data aspect ratio Set or query plot box aspect ratio Create axes graphics object Axis scaling and appearance Create axes in tiled positions Retain current graph w hen adding new graphs Current axes handle Clear current axes
Annotation a n n o t a t i o n t e x t l e g e n d t i t l e x l a b e l y l a b e l z l a b e l d a t a c u r s o r m o d e g i n p u t g t e x t Create annotation objects Create text object in current axes Graph legend for lines and patches Add title to current axes Label x-axis Label y-axis Label z-axis Enable, disable, and manage interactive data cursor mode Graphical input from mouse or cursor Mouse placement of text in 2-D view
Colorm aps c o l o r m a p c o l o r m a p e d i t o r c o l o r b a r b r i g h t e n c o n t r a s t s h a d i n g g r a y m o n c a x i s h s v 2 r g b r g b 2 h s v r g b p l o t s p i n m a p c o l o r d e f w h i t e b g Set and get current colormap Open colormap editor Colorbar show ing color scale Brighten or darken colormap Grayscale colormap for contrast enhancement Set color shading properties Set default figure properties for grayscale monitors Color axis scaling Convert HSV colormap to RGB colormap Convert RGB colormap to HSV colormap Plot colormap Spin colormap Set default property values to display different color schemes Change axes background color
Data Exploration h i d d e n p a n r e s e t r o t a t e r o t a t e 3 d s e l e c t m o v e r e s i z e z o o m d a t a c u r s o r m o d e f i g u r e p a l e t t e p l o t b r o w s e r p l o t e d i t p l o t t o o l s p r o p e r t y e d i t o r s h o w p l o t t o o l Remove hidden lines from mesh plot Pan view of graph interactively Reset graphics object properties to their defaults Rotate object about specified origin and direction Rotate 3-D view using mouse Select, move, resize, or copy axes and uicontrol graphics objects Turn zooming on or off or magnify by factorMagnify by a factor Enable, disable, and manage interactive data cursor mode Show or hide Figure Palette Show or hide figure Plot Brow ser Interactively edit and annotate plots Show or hide plot tools Show or hide Property Editor Show or hide figure plot tool
Data Brushing b r u s h d a t a c u r s o r m o d e l i n k d a t a r e f r e s h d a t a Interactively mark, delete, modify, and save observations in graphs Enable, disable, and manage interactive data cursor mode Automatically update graphs w hen variables change Refresh data in graph w hen data source is specified
3-D Scene Control Cam era View s v i e w m a k e h g t f o r m v i e w m t x c a m e r a t o o l b a r c a m p a n c a m z o o m c a m d o l l y c a m l o o k a t c a m o r b i t c a m p o s c a m p r o j c a m r o l l c a m t a r g e t c a m u p c a m v a View point specification Create 4-by-4 transform matrix View transformation matrices Control camera toolbar programmatically Rotate camera target around camera position Zoom in and out on scene Move camera position and target Position camera to view object or group of objects Rotate camera position around camera target Set or query camera position Set or query projection type Rotate camera about view axis Set or query location of camera target Set or query camera up vector Set or query camera view angle
c a m l i g h t l i g h t l i g h t a n g l e l i g h t i n g d i f f u s e m a t e r i a l s p e c u l a r a l i m a l p h a a l p h a m a p
Create or move light object in camera coordinates Create light object Create or position light object in spherical coordinates Specify lighting algorithm Calculate diffuse reflectance Control reflectance properties of surfaces and patches Calculate specular reflectance Set or query axes alpha limits Set transparency properties for objects in current axes Specify figure alphamap (transparency)
Images
Im age File Operations i m a g e i m a g e s c i m r e a d i m w r i t e i m f i n f o i m f o r m a t s f r a m e 2 i m i m 2 f r a m e i m 2 j a v a Display image object Scale data and display image object Read image from graphics file Write image to graphics file Information about graphics file Manage image file format registry Return image data associated w ith movie frame Convert image to movie frame Convert image to Java image
Modifying Im ages i n d 2 r g b r g b 2 i n d i m a p p r o x d i t h e r c m p e r m u t e c m u n i q u e Convert indexed image to RGB image Convert RGB image to indexed image Approximate indexed image by reducing number of colors Convert image, increasing apparent color resolution by dithering Rearrange colors in colormap Eliminate duplicate colors in colormap; convert grayscale or truecolor image to indexed image
h g s a v e h g l o a d s a v e a s
Save Handle Graphics object hierarchy to file Load Handle Graphics object hierarchy from file Save figure or Simulink block diagram using specified format
Graphics Objects
Graphics Object Identification g c a g c f g c b f g c b o g c o a n c e s t o r a l l c h i l d f i n d a l l f i n d f i g s f i n d o b j g o b j e c t s i s h g h a n d l e c o p y o b j d e l e t e g e t s e t p r o p e d i t Current axes handle Current figure handle Handle of figure containing object w hose callback is executing Handle of object w hose callback is executing Handle of current object Ancestor of graphics object Find all children of specified objects Find all graphics objects Find visible offscreen figures Locate graphics objects w ith specific properties Create array of graphics handles True for Handle Graphics object handles Copy graphics objects and their descendants Remove files or objects Query Handle Graphics object properties Set Handle Graphics object properties Open Property Editor
Core Objects r o o to b j e c t f i g u r e a x e s i m a g e l i g h t l i n e p a t c h r e c t a n g l e s u r f a c e t e x t Root Create figure graphics object Create axes graphics object Display image object Create light object Create line object Create one or more filled polygons Create 2-D rectangle object Create surface object Create text object in current axes
Plot Objects
s e t g e t
Set Handle Graphics object properties Query Handle Graphics object properties
Group Objects h g g r o u p h g t r a n s f o r m m a k e h g t f o r m Create hggroup object Create hgtransform graphics object Create 4-by-4 transform matrix
Figure Window s f i g u r e g c f c l o s e c l f r e f r e s h n e w p l o t s h g c l o s e r e q d r a g r e c t d r a w n o w r b b o x o p e n g l Create figure graphics object Current figure handle Remove specified figure Clear current figure w indow Redraw current figure Determine w here to draw graphics objects Show most recent graph w indow Default figure close request function Drag rectangles w ith mouse Flush event queue and update figure w indow Create rubberband box for area selection Control OpenGL rendering
Axes Property Operations a x e s h o l d i s h o l d n e w p l o t Create axes graphics object Retain current graph w hen adding new graphs Current hold state Determine w here to draw graphics objects
Object Property Operations l i n k a x e s l i n k p r o p r e f r e s h d a t a w a i t f o r g e t s e t Synchronize limits of specified 2-D axes Keep same value for corresponding properties of graphics objects Refresh data in graph w hen data source is specified Block execution and w ait for event or condition Query Handle Graphics object properties Set Handle Graphics object properties
i f / e l s e i f / e l s e f o r p a r f o r s w i t c h / c a s e / o t h e r w i s e t r y / c a t c h w h i l e b r e a k c o n t i n u e e n d p a u s e r e t u r n
Execute statements if condition is true Execute statements specified number of times Parallel for loop Sw itch among several cases based on expression Execute statements and catch resulting errors Repeatedly execute statements w hile condition is true Terminate execution of for or w hile loop Pass control to next iteration of for or w hile loop Terminate block of code, or indicate last array index Halt execution temporarily Return to invoking function
Scripts
e d i t i n p u t p u b l i s h n o t e b o o k g r a b c o d e s n a p n o w Edit or create file Request user input Generate view of MATLAB file in specified format Open MATLAB Notebook in Microsoft Word softw are (on Microsoft Window s platforms) Extract MATLAB code from file published to HTML Force snapshot of image for inclusion in published document
Functions
Function Basics f u n c t i o n Declare function name, inputs, and outputs
Input and Output Argum ents n a r g i n n a r g o u t v a r a r g i n v a r a r g o u t n a r g i n c h k n a r g o u t c h k v a l i d a t e a t t r i b u t e s v a l i d a t e s t r i n g i n p u t P a r s e r i n p u t n a m e Number of function input arguments Number of function output arguments Variable-length input argument list Variable-length output argument list Validate number of input arguments Validate number of output arguments Check validity of array Check validity of text string Parse function inputs Variable name of function input
Variables p e r s i s t e n t g e n v a r n a m e i s v a r n a m e n a m e l e n g t h m a x a s s i g n i n g l o b a l i s g l o b a l Define persistent variable Construct valid variable name from string Determine w hether input is valid variable name Maximum identifier length Assign value to variable in specified w orkspace Declare global variables Determine w hether input is global variable
Error Handling t r y / c a t c h e r r o r w a r n i n g l a s t w a r n a s s e r t o n C l e a n u p Execute statements and catch resulting errors Display message and abort function Warning message Last w arning message Generate error w hen condition is violated Cleanup tasks upon function completion
Debugging
d b c l e a r d b c o n t d b d o w n d b q u i t d b s t a c k d b s t a t u s d b s t e p d b s t o p d b t y p e d b u p c h e c k c o d e k e y b o a r d m l i n t r p t Clear breakpoints Resume execution Reverse w orkspace shift performed by dbup, w hile in debug mode Quit debug mode Function call stack List all breakpoints Execute one or more lines from current breakpoint Set breakpoints for debugging List text file w ith line numbers Shift current w orkspace to w orkspace of caller, w hile in debug mode Check MATLAB code files for possible problems Input from keyboard Run checkcode for file or folder, reporting results in brow ser
Programming Utilities
e c h o e v a l e v a l c e v a l i n Display statements during function execution Execute MATLAB expression in text string Evaluate MATLAB expression w ith capture Execute MATLAB expression in specified w orkspace
f e v a l r u n b u i l t i n d e p d i r d e p f u n m f i l e n a m e p c o d e t i m e r
Evaluate function Run MATLAB script Execute built-in function from overloaded method List dependent folders for function or P-file List dependencies of function or P-file File name of currently running function Create protected function file Create object to schedule execution of MATLAB commands
Text Files c s v r e a d c s v w r i t e d l m r e a d d l m w r i t e f i l e r e a d t e x t r e a d t e x t s c a n r e a d t a b l e w r i t e t a b l e t y p e Read comma-separated value file Write comma-separated value file Read ASCII-delimited file of numeric data into matrix Write matrix to ASCII-delimited file Read contents of file into string Read data from text file; w rite to multiple outputs Read formatted data from text file or string Create table from file Write table to file Display contents of file
Spreadsheets
x l s f i n f o x l s r e a d x l s w r i t e r e a d t a b l e w r i t e t a b l e
Determine if file contains Microsoft Excel spreadsheet Read Microsoft Excel spreadsheet file Write Microsoft Excel spreadsheet file Create table from file Write table to file
Low -Level File I/O f c l o s e f e o f f e r r o r f g e t l f g e t s f o p e n f p r i n t f f r e a d f r e w i n d f s c a n f f s e e k f t e l l f w r i t e Close one or all open files Test for end-of-file Information about file I/O errors Read line from file, removing new line characters Read line from file, keeping new line characters Open file, or obtain information about open files Write data to text file Read data from binary file Move file position indicator to beginning of open file Read data from text file Move to specified position in file Position in open file Write data to binary file
Im ages e x i f r e a d i m 2 j a v a i m f i n f o i m r e a d i m w r i t e T i f f Read EXIF information from JPEG and TIFF image files Convert image to Java image Information about graphics file Read image from graphics file Write image to graphics file MATLAB Gatew ay to LibTIFF library routines
Scientific Data netCDF Files n c c r e a t e n c d i s p n c i n f o n c r e a d n c r e a d a t t n c w r i t e n c w r i t e a t t n c w r i t e s c h e m a n e t c d f Create variable in NetCDF file Display contents of NetCDF data source in Command Window Return information about NetCDF data source Read data from variable in NetCDF data source Read attribute value from NetCDF data source Write data to NetCDF file Write attribute to NetCDF file Add NetCDF schema definitions to NetCDF file Summary of MATLAB Netw ork Common Data Form (NetCDF) capabilities
HDF5 Files High-Level Functions h 5 c r e a t e h 5 d i s p h 5 i n f o h 5 r e a d h 5 r e a d a t t h 5 w r i t e h 5 w r i t e a t t Create HDF5 data set Display contents of HDF5 file Return information about HDF5 file Read data from HDF5 data set Read attribute from HDF5 file Write to HDF5 data set Write HDF5 attribute
Low -Level Functions Library (H5) H 5 . c l o s e H 5 . g a r b a g e _ c o l l e c t H 5 . g e t _ l i b v e r s i o n H 5 . o p e n H 5 . s e t _ f r e e _ l i s t _ l i m i t s Close HDF5 library Free unused memory in HDF5 library Version of HDF5 library Open HDF5 library Set size limits on free lists
Attribute (H5A) H 5 A . c l o s e H 5 A . c r e a t e H 5 A . d e l e t e H 5 A . g e t _ i n f o H 5 A . g e t _ n a m e H 5 A . g e t _ s p a c e H 5 A . g e t _ t y p e H 5 A . i t e r a t e H 5 A . o p e n H 5 A . o p e n _ b y _ i d x H 5 A . o p e n _ b y _ n a m e H 5 A . r e a d H 5 A . w r i t e Close specified attribute Create attribute Delete attribute Information about attribute Attribute name Copy of attribute data space Copy of attribute data type Execute function for attributes attached to object Open attribute Open attribute specified by index Open attribute specified by name Read attribute Write attribute
Dataset (H5D) H 5 D . c l o s e H 5 D . c r e a t e H 5 D . g e t _ a c c e s s _ p l i s t H 5 D . g e t _ c r e a t e _ p l i s t H 5 D . g e t _ o f f s e t H 5 D . g e t _ s p a c e H 5 D . g e t _ s p a c e _ s t a t u s Close dataset Create new dataset Copy of dataset access property list Copy of dataset creation property list Location of dataset in file Copy of dataset data space Determine if space is allocated
H 5 D . g e t _ s t o r a g e _ s i z e H 5 D . g e t _ t y p e H 5 D . o p e n H 5 D . r e a d H 5 D . s e t _ e x t e n t H 5 D . v l e n _ g e t _ b u f _ s i z e H 5 D . w r i t e
Determine required storage size Copy of datatype Open specified dataset Read data from HDF5 dataset Change size of dataset dimensions Determine variable length storage requirements Write data to HDF5 dataset
Dimension Scale (H5DS) H 5 D S . a t t a c h _ s c a l e H 5 D S . d e t a c h _ s c a l e H 5 D S . g e t _ l a b e l H 5 D S . g e t _ n u m _ s c a l e s H 5 D S . g e t _ s c a l e _ n a m e H 5 D S . i s _ s c a l e H 5 D S . i t e r a t e _ s c a l e s H 5 D S . s e t _ l a b e l H 5 D S . s e t _ s c a l e Attach dimension scale to specific dataset dimension Detach dimension scale from specific dataset dimension Retrieve label from specific dataset dimension Number of scales attached to dataset dimension Name of dimension scale Determine if dataset is a dimension scale Iterate on scales attached to dataset dimension Set label for dataset dimension Convert dataset to dimension scale
Error (H5E) H 5 E . c l e a r H 5 E . g e t _ m a j o r H 5 E . g e t _ m i n o r H 5 E . w a l k Clear error stack Description of major error number Description of minor error number Walk error stack
File (H5F) H 5 F . c l o s e H 5 F . c r e a t e H 5 F . f l u s h H 5 F . g e t _ a c c e s s _ p l i s t H 5 F . g e t _ c r e a t e _ p l i s t H 5 F . g e t _ f i l e s i z e H 5 F . g e t _ f r e e s p a c e H 5 F . g e t _ i n f o H 5 F . g e t _ m d c _ c o n f i g H 5 F . g e t _ m d c _ h i t _ r a t e H 5 F . g e t _ m d c _ s i z e H 5 F . g e t _ n a m e H 5 F . g e t _ o b j _ c o u n t H 5 F . g e t _ o b j _ i d s H 5 F . i s _ h d f 5 Close HDF5 file Create HDF5 file Flush buffers to disk File access property list File creation property list Size of HDF5 file Amount of free space in file Global information about file Metadata cache configuration Metadata cache hit-rate Metadata cache size data Name of HDF5 file Number of open objects in HDF5 file List of open HDF5 file objects Determine if file is HDF5
H 5 F . m o u n t H 5 F . o p e n H 5 F . r e o p e n H 5 F . s e t _ m d c _ c o n f i g H 5 F . u n m o u n t
Mount HDF5 file onto specified location Open HDF5 file Reopen HDF5 file Configure HDF5 file metadata cache Unmount file or group from mount point
Group (H5G) H 5 G . c l o s e H 5 G . c r e a t e H 5 G . g e t _ i n f o H 5 G . o p e n Close group Create group Information about group Open specified group
Identifier (H5I) H 5 I . d e c _ r e f H 5 I . g e t _ f i l e _ i d H 5 I . g e t _ n a m e H 5 I . g e t _ r e f H 5 I . g e t _ t y p e H 5 I . i n c _ r e f H 5 I . i s _ v a l i d Decrement reference count File identifier for specified object Name of object Reference count of object Type of object Increment reference count of specified object Determine if specified identifier is valid
Link (H5L) H 5 L . c o p y H 5 L . c r e a t e _ e x t e r n a l H 5 L . c r e a t e _ h a r d H 5 L . c r e a t e _ s o f t H 5 L . d e l e t e H 5 L . e x i s t s H 5 L . g e t _ i n f o H 5 L . g e t _ n a m e _ b y _ i d x H 5 L . g e t _ v a l H 5 L . i t e r a t e H 5 L . i t e r a t e _ b y _ n a m e H 5 L . m o v e H 5 L . v i s i t H 5 L . v i s i t _ b y _ n a m e Copy link from source location to destination location Create soft link to external object Create hard link Create soft link Remove link Determine if link exists Information about link Information about link specified by index Value of symbolic link Iterate over links Iterate through links in group specified by name Rename link Recursively iterate through links in group specified by group identifier Recursively iterate through links in group specified by location and group name
MATLAB (H5ML) H 5 M L . c o m p a r e _ v a l u e s H 5 M L . g e t _ c o n s t a n t _ n a m e s H 5 M L . g e t _ c o n s t a n t _ v a l u e Numerically compare tw o HDF5 values Constants know n by HDF5 library Value corresponding to a string
H 5 M L . g e t _ f u n c t i o n _ n a m e s H 5 M L . g e t _ m e m _ d a t a t y p e
Object (H5O) H 5 O . c l o s e H 5 O . c o p y H 5 O . g e t _ c o m m e n t H 5 O . g e t _ c o m m e n t _ b y _ n a m e H 5 O . g e t _ i n f o H 5 O . l i n k H 5 O . o p e n H 5 O . o p e n _ b y _ i d x H 5 O . s e t _ c o m m e n t H 5 O . s e t _ c o m m e n t _ b y _ n a m e H 5 O . v i s i t H 5 O . v i s i t _ b y _ n a m e Close object Copy object from source location to destination location Get comment for object specified by object identifier Get comment for object specified by location and object name Object metadata Create hard link to specified object Open specified object Open object specified by index Set comment for object specified by object identifier Set comment for object specified by location and object name Visit objects specified by object identifier Visit objects specified by location and object name
Property (H5P) General Property List Operations H 5 P . c l o s e H 5 P . c o p y H 5 P . c r e a t e H 5 P . g e t _ c l a s s Close property list Copy of property list Create new property list Property list class
Generic Property List Operations H 5 P . c l o s e _ c l a s s H 5 P . e q u a l H 5 P . e x i s t H 5 P . g e t H 5 P . g e t _ c l a s s _ n a m e H 5 P . g e t _ c l a s s _ p a r e n t H 5 P . g e t _ n p r o p s H 5 P . g e t _ s i z e H 5 P . i s a _ c l a s s H 5 P . i t e r a t e H 5 P . s e t Close property list class Determine equality of property lists Determine if specified property exists in property list Value of specified property in property list Name of property list class Identifier for parent class Query number of properties in property list or class Query size of property value in bytes Determine if property list is member of class Iterate over properties in property list Set property list value
Dataset Access, Memory, and Transfer Properties H 5 P . g e t _ b t r e e _ r a t i o s H 5 P . g e t _ c h u n k _ c a c h e H 5 P . g e t _ d x p l _ m u l t i H 5 P . g e t _ e d c _ c h e c k B-tree split ratios Raw data chunk cache parameters Data access property lists for multiple files Determine if error detection is enabled
H 5 P . g e t _ h y p e r _ v e c t o r _ s i z e H 5 P . s e t _ b t r e e _ r a t i o s H 5 P . s e t _ c h u n k _ c a c h e H 5 P . s e t _ d x p l _ m u l t i H 5 P . s e t _ e d c _ c h e c k H 5 P . s e t _ h y p e r _ v e c t o r _ s i z e
Number of I/O vectors Set B-tree split ratios for dataset transfer Set raw data chunk cache parameters Set data transfer property list for multifile driver Enable error detection for dataset transfer Set number of I/O vectors for hyperslab I/O
Dataset Creation Properties H 5 P . a l l _ f i l t e r s _ a v a i l H 5 P . f i l l _ v a l u e _ d e f i n e d H 5 P . g e t _ a l l o c _ t i m e H 5 P . g e t _ c h u n k H 5 P . g e t _ e x t e r n a l H 5 P . g e t _ e x t e r n a l _ c o u n t H 5 P . g e t _ f i l l _ t i m e H 5 P . g e t _ f i l l _ v a l u e H 5 P . g e t _ f i l t e r H 5 P . g e t _ f i l t e r _ b y _ i d H 5 P . g e t _ l a y o u t H 5 P . g e t _ n f i l t e r s H 5 P . m o d i f y _ f i l t e r H 5 P . r e m o v e _ f i l t e r H 5 P . s e t _ a l l o c _ t i m e H 5 P . s e t _ c h u n k H 5 P . s e t _ d e f l a t e H 5 P . s e t _ e x t e r n a l H 5 P . s e t _ f i l l _ t i m e H 5 P . s e t _ f i l l _ v a l u e H 5 P . s e t _ f i l t e r H 5 P . s e t _ f l e t c h e r 3 2 H 5 P . s e t _ l a y o u t H 5 P . s e t _ n b i t H 5 P . s e t _ s c a l e o f f s e t H 5 P . s e t _ s h u f f l e Determine availability of all filters Determine if fill value is defined Return timing of storage space allocation Return size of chunks Return information about external file Return count of external files Return time w hen fill values are w ritten to dataset Return dataset fill value Return information about filter in pipeline Return information about specified filter Determine layout of raw data for dataset Return number of filters in pipeline Modify filter in pipeline Remove filter from property list Set timing for storage space allocation Set chunk size Set compression method and compression level Add additional file to external file list Set time w hen fill values are w ritten to dataset Set fill value for dataset creation property list Add filter to filter pipeline Set Fletcher32 checksum filter in dataset creation Set type of storage for dataset Set N-Bit filter Set Scale-Offset filter Set shuffle filter
File Access Properties H 5 P . g e t _ a l i g n m e n t H 5 P . g e t _ d r i v e r H 5 P . g e t _ f a m i l y _ o f f s e t H 5 P . g e t _ f a p l _ c o r e H 5 P . g e t _ f a p l _ f a m i l y H 5 P . g e t _ f a p l _ m u l t i Retrieve alignment properties Low -level file driver Offset for family file driver Information about core file driver properties File access property list information Information about multifile access property list
H 5 P . g e t _ f c l o s e _ d e g r e e H 5 P . g e t _ l i b v e r _ b o u n d s H 5 P . g e t _ g c _ r e f e r e n c e s H 5 P . g e t _ m d c _ c o n f i g H 5 P . g e t _ m e t a _ b l o c k _ s i z e H 5 P . g e t _ m u l t i _ t y p e H 5 P . g e t _ s i e v e _ b u f _ s i z e
File close degree Library version bounds settings Garbage collection references setting Metadata cache configuration Metadata block size setting Type of data property for MULTI driver Maximum data sieve buffer size
H 5 P . g e t _ s m a l l _ d a t a _ b l o c k _ s i z e Small data block size setting H 5 P . s e t _ a l i g n m e n t H 5 P . s e t _ f a m i l y _ o f f s e t H 5 P . s e t _ f a p l _ c o r e H 5 P . s e t _ f a p l _ f a m i l y H 5 P . s e t _ f a p l _ l o g H 5 P . s e t _ f a p l _ m u l t i H 5 P . s e t _ f a p l _ s e c 2 H 5 P . s e t _ f a p l _ s p l i t H 5 P . s e t _ f a p l _ s t d i o H 5 P . s e t _ f c l o s e _ d e g r e e H 5 P . s e t _ g c _ r e f e r e n c e s H 5 P . s e t _ l i b v e r _ b o u n d s H 5 P . s e t _ m d c _ c o n f i g H 5 P . s e t _ m e t a _ b l o c k _ s i z e H 5 P . s e t _ m u l t i _ t y p e H 5 P . s e t _ s i e v e _ b u f _ s i z e Set alignment properties for file access property list Set offset property for family of files Modify file access to use H5FD_CORE driver Set file access to use family driver Set use of logging driver Set use of multifile driver Set file access for sec2 driver Set file access for emulation of split file driver Set file access for standard I/O driver Set file access for file close degree Set garbage collection references flag Set library version bounds for objects Set initial metadata cache configuration Set minimum metadata block size Specify type of data accessed w ith MULTI driver Set maximum size of data sieve buffer
File Creation Properties H 5 P . g e t _ i s t o r e _ k H 5 P . g e t _ s i z e s H 5 P . g e t _ s y m _ k H 5 P . g e t _ u s e r b l o c k H 5 P . g e t _ v e r s i o n H 5 P . s e t _ i s t o r e _ k H 5 P . s e t _ s i z e s H 5 P . s e t _ s y m _ k H 5 P . s e t _ u s e r b l o c k Return 1/2 rank of indexed storage B-tree Return size of offsets and lengths Return size of B-tree 1/2 rank and leaf node 1/2 size Return size of user block Return version information for file creation property list Set size of parameter for indexing chunked datasets Set byte size of offsets and lengths Set size of parameters used to control symbol table nodes Set user block size
Object Copy and Object Creation Properties H 5 P . g e t _ a t t r _ c r e a t i o n _ o r d e r Return tracking order and indexing settings H 5 P . g e t _ a t t r _ p h a s e _ c h a n g e H 5 P . g e t _ c o p y _ o b j e c t Retrieve attribute phase change thresholds Return properties to be used w hen object is copied
H 5 P . s e t _ a t t r _ p h a s e _ c h a n g e H 5 P . s e t _ c o p y _ o b j e c t
Set attribute storage phase change thresholds Set properties to be used w hen objects are copied
Group Creation Properties H 5 P . g e t _ c r e a t e _ i n t e r m e d i a t e _ g r o u p Determine creation of intermediate groups H 5 P . g e t _ l i n k _ c r e a t i o n _ o r d e r H 5 P . g e t _ l i n k _ p h a s e _ c h a n g e Query if link creation order is tracked Query settings for conversion betw een groups
H 5 P . s e t _ c r e a t e _ i n t e r m e d i a t e _ g r o u p Set creation of intermediate groups H 5 P . s e t _ l i n k _ c r e a t i o n _ o r d e r H 5 P . s e t _ l i n k _ p h a s e _ c h a n g e Set creation order tracking and indexing Set parameters for group conversion
HDF5 String Properties H 5 P . g e t _ c h a r _ e n c o d i n g H 5 P . s e t _ c h a r _ e n c o d i n g Return character encoding Set character encoding used to encode strings
Reference (H5R) H 5 R . c r e a t e H 5 R . d e r e f e r e n c e H 5 R . g e t _ n a m e H 5 R . g e t _ o b j _ t y p e H 5 R . g e t _ r e g i o n Create reference Open object specified by reference Name of referenced object Type of referenced object Copy of data space of specified region
Dataspace (H5S) H 5 S . c o p y H 5 S . c r e a t e H 5 S . c l o s e H 5 S . c r e a t e _ s i m p l e H 5 S . e x t e n t _ c o p y H 5 S . i s _ s i m p l e H 5 S . o f f s e t _ s i m p l e H 5 S . s e l e c t _ a l l H 5 S . s e l e c t _ e l e m e n t s H 5 S . s e l e c t _ h y p e r s l a b H 5 S . s e l e c t _ n o n e H 5 S . s e l e c t _ v a l i d H 5 S . s e t _ e x t e n t _ n o n e H 5 S . s e t _ e x t e n t _ s i m p l e H 5 S . g e t _ s e l e c t _ b o u n d s H 5 S . g e t _ s e l e c t _ e l e m _ n p o i n t s H 5 S . g e t _ s e l e c t _ e l e m _ p o i n t l i s t Create copy of data space Create new data space Close data space Create new simple data space Copy extent from source to destination data space Determine if data space is simple Set offset of simple data space Select entire extent of data space Specify coordinates to include in selection Select hyperslab region Reset selection region to include no elements Determine validity of selection Remove extent from data space Set size of data space Bounding box of data space selection Number of element points in selection Element points in data space selection
H 5 S . g e t _ s e l e c t _ h y p e r _ n b l o c k s H 5 S . g e t _ s e l e c t _ n p o i n t s H 5 S . g e t _ s e l e c t _ t y p e H 5 S . g e t _ s i m p l e _ e x t e n t _ d i m s H 5 S . g e t _ s i m p l e _ e x t e n t _ n d i m s H 5 S . g e t _ s i m p l e _ e x t e n t _ n p o i n t s H 5 S . g e t _ s i m p l e _ e x t e n t _ t y p e
Number of hyperslab blocks Number of elements in data space selection Type of data space selection Data space size and maximum size Data space rank Number of elements in data space Data space class
Datatype (H5T) General Data Type Operation H 5 T . c l o s e H 5 T . c o m m i t H 5 T . c o m m i t t e d H 5 T . c o p y H 5 T . c r e a t e H 5 T . d e t e c t _ c l a s s H 5 T . e q u a l H 5 T . g e t _ c l a s s H 5 T . g e t _ c r e a t e _ p l i s t H 5 T . g e t _ n a t i v e _ t y p e H 5 T . g e t _ s i z e H 5 T . g e t _ s u p e r H 5 T . l o c k H 5 T . o p e n Close data type Commit transient data type Determine if data type is committed Copy data type Create new data type Determine of data type contains specific class Determine equality of data types Data type class identifier Copy of data type creation property list Native data type of dataset data type Size of data type in bytes Base data type Lock data type Open named data type
Array Data Type H 5 T . a r r a y _ c r e a t e H 5 T . g e t _ a r r a y _ d i m s H 5 T . g e t _ a r r a y _ n d i m s Create array data type object Array dimension extents Rank of array data type
Atomic Data Type Properties H 5 T . g e t _ c s e t H 5 T . g e t _ e b i a s H 5 T . g e t _ f i e l d s H 5 T . g e t _ i n p a d H 5 T . g e t _ n o r m H 5 T . g e t _ o f f s e t H 5 T . g e t _ o r d e r H 5 T . g e t _ p a d H 5 T . g e t _ p r e c i s i o n H 5 T . g e t _ s i g n H 5 T . g e t _ s t r p a d Character set of string data type Exponent bias of floating-point type Floating-point data type bit field information Internal padding type for floating-point data types Mantissa normalization type Bit offset of first significant bit Byte order of atomic data type Padding type of least and most-significant bits Precision of atomic data type Sign type for integer data type Storage mechanism for string data type
H 5 T . s e t _ c s e t H 5 T . s e t _ e b i a s H 5 T . s e t _ f i e l d s H 5 T . s e t _ i n p a d H 5 T . s e t _ n o r m H 5 T . s e t _ o f f s e t H 5 T . s e t _ o r d e r H 5 T . s e t _ p a d H 5 T . s e t _ p r e c i s i o n H 5 T . s e t _ s i g n H 5 T . s e t _ s i z e H 5 T . s e t _ s t r p a d
Set character dataset for string data type Set exponent bias of floating-point data type Set sizes and locations of floating-point bit fields Specify how unused internal bits are to be filled Set mantissa normalization of floating-point data type Set bit offset of first significant bit Set byte ordering of atomic data type Set padding type for least and most significant bits Set precision of atomic data type Set sign property for integer data type Set size of data type in bytes Set storage mechanism for string data type
Compound Data Type H 5 T . g e t _ m e m b e r _ c l a s s H 5 T . g e t _ m e m b e r _ i n d e x H 5 T . g e t _ m e m b e r _ n a m e H 5 T . g e t _ m e m b e r _ o f f s e t H 5 T . g e t _ m e m b e r _ t y p e H 5 T . g e t _ n m e m b e r s H 5 T . i n s e r t H 5 T . p a c k Data type class for compound data type member Index of compound or enumeration type member Name of compound or enumeration type member Offset of field of compound data type Data type of specified member Number of elements in enumeration type Add member to compound data type Recursively remove padding from compound data type
Enumeration Data Type H 5 T . e n u m _ c r e a t e H 5 T . e n u m _ i n s e r t H 5 T . e n u m _ n a m e o f H 5 T . e n u m _ v a l u e o f H 5 T . g e t _ m e m b e r _ v a l u e Create new enumeration data type Insert enumeration data type member Name of enumeration data type member Value of enumeration data type member Value of enumeration data type member
Opaque Data Type Properties H 5 T . g e t _ t a g H 5 T . s e t _ t a g Tag associated w ith opaque data type Tag opaque data type w ith description
Variable-length Data Type H 5 T . i s _ v a r i a b l e _ s t r H 5 T . v l e n _ c r e a t e Determine if data type is variable-length string Create new variable-length data type
H 5 Z . g e t _ f i l t e r _ i n f o
HDF4 Files h d f i n f o h d f r e a d h d f Information about HDF4 or HDF-EOS file Read data from HDF4 or HDF-EOS file Summary of MATLAB HDF4 capabilities
FITS Files High-Level Functions f i t s d i s p f i t s i n f o f i t s r e a d f i t s w r i t e Display FITS metadata Information about FITS file Read data from FITS file Write image to FITS file
Low -Level Functions File Access c r e a t e F i l e o p e n F i l e c l o s e F i l e d e l e t e F i l e f i l e N a m e f i l e M o d e Create FITS file Open FITS file Close FITS file Delete FITS file Name of FITS file I/O mode of FITS file
Image Manipulation c r e a t e I m g g e t I m g S i z e g e t I m g T y p e i n s e r t I m g r e a d I m g s e t B s c a l e w r i t e I m g Create FITS image Size of image Data type of image Insert FITS image after current image Read image data Reset image scaling Write to FITS image
Keyw ords r e a d C a r d r e a d K e y r e a d K e y C m p l x r e a d K e y D b l r e a d K e y L o n g L o n g r e a d K e y L o n g S t r r e a d K e y U n i t Header record of keyw ord Keyw ord Keyw ord as complex scalar value Keyw ord as double precision value Keyw ord as int64 Long string value Physical units string from keyw ord
r e a d R e c o r d w r i t e C o m m e n t w r i t e D a t e w r i t e K e y w r i t e K e y U n i t w r i t e H i s t o r y d e l e t e K e y d e l e t e R e c o r d g e t H d r S p a c e
Header record specified by number Write or append COMMENT keyw ord to CHU Write DATE keyw ord to CHU Update or add new keyw ord into current HDU Write physical units string Write or append HISTORY keyw ord to CHU Delete key by name Delete key by record number Number of keyw ords in header
Header Data Unit (HDU) Access c o p y H D U g e t H D U n u m g e t H D U t y p e g e t N u m H D U s m o v A b s H D U m o v N a m H D U m o v R e l H D U w r i t e C h e c k s u m d e l e t e H D U Copy current HDU from one file to another Number of current HDU in FITS file Type of current HDU Total number of HDUs in FITS file Move to absolute HDU number Move to first HDU having specific type and keyw ord values Move relative number of HDUs from current HDU Compute and w rite checksum for current HDU Delete current HDU in FITS file
Image Compression i m g C o m p r e s s i s C o m p r e s s e d I m g s e t C o m p r e s s i o n T y p e s e t H C o m p S c a l e s e t H C o m p S m o o t h s e t T i l e D i m Compress HDU from one file into another Determine if current image is compressed Set image compression type Set scale parameter for HCOMPRESS algorithm Set smoothing for images compressed w ith HCOMPRESS Set tile dimensions
ASCII and Binary Tables c r e a t e T b l i n s e r t C o l i n s e r t R o w s i n s e r t A T b l i n s e r t B T b l d e l e t e C o l d e l e t e R o w s g e t A C o l P a r m s g e t B C o l P a r m s g e t C o l N a m e g e t C o l T y p e Create new ASCII or binary table extension Insert column into table Insert row s into table Insert ASCII table after current HDU Insert binary table after current HDU Delete column from table Delete row s from table ASCII table information Binary table information Table column name Scaled column data type, repeat value, w idth
g e t E q C o l T y p e g e t N u m C o l s g e t N u m R o w s r e a d A T b l H d r r e a d B T b l H d r r e a d C o l s e t T s c a l e w r i t e C o l
Column data type, repeat value, w idth Number of columns in table Number of row s in table Read header information from current ASCII table Read header information from current binary table Read row s of ASCII or binary table column Reset image scaling Write elements into ASCII or binary table column
Utilities g e t C o n s t a n t V a l u e g e t V e r s i o n g e t O p e n F i l e s Numeric value of named constant Revision number of the CFITSIO library List of open FITS files
Band-Interleaved Files m u l t i b a n d r e a d m u l t i b a n d w r i t e Read band-interleaved data from binary file Write band-interleaved data to file
Com m on Data Form at c d f e p o c h c d f i n f o c d f r e a d c d f w r i t e t o d a t e n u m c d f l i b Convert MATLAB formatted dates to CDF formatted dates Information about Common Data Format (CDF) file Read data from Common Data Format (CDF) file Write data to Common Data Format (CDF) file Convert CDF epoch object to MATLAB datenum Summary of Common Data Format (CDF) capabilities
Audio and Video Reading and Writing Files a u d i o i n f o a u d i o r e a d a u d i o w r i t e m m f i l e i n f o m o v i e 2 a v i V i d e o R e a d e r V i d e o W r i t e r Information about audio file Read audio file Write audio file Information about multimedia file Create Audio/Video Interleaved (AVI) file from MATLAB movie Read video files Write video files
Recording and Playback a u d i o d e v i n f o a u d i o p l a y e r a u d i o r e c o r d e r Information about audio device Create object for playing audio Create object for recording audio
s o u n d s o u n d s c
Convert matrix of signal data to sound Scale data and play as sound
Utilities b e e p l i n 2 m u m u 2 l i n Produce beep sound Convert linear audio signal to mu-law Convert mu-law audio signal to linear
XML Docum ents x m l r e a d x m l w r i t e x s l t Read XML document and return Document Object Model node Write XML Document Object Model node Transform XML document using XSLT engine
Mem ory Mapping d i s p( m e m m a p f i l e ) g e t( m e m m a p f i l e ) m e m m a p f i l e Information about memory map Memory map properties Create memory map to a file
File Operations
Files and Folders d i r l s p w d f i l e a t t r i b e x i s t i s d i r t y p e v i s d i f f w h a t w h i c h c d c o p y f i l e d e l e t e r e c y c l e m k d i r m o v e f i l e r m d i r o p e n w i n o p e n f i l e b r o w s e r List folder contents List folder contents Identify current folder Set or get attributes of file or folder Check existence of variable, function, folder, or class Determine w hether input is folder Display contents of file Compare tw o text files, MAT-Files, binary files, Zip files, or folders List MATLAB files in folder Locate functions and files Change current folder Copy file or folder Remove files or objects Set option to move deleted files to recycle folder Make new folder Move file or folder Remove folder Open file in appropriate application Open file in appropriate application (Window s) Open Current Folder brow ser, or select it if already open
File Nam e Construction f i l e p a r t s f u l l f i l e f i l e m a r k e r f i l e s e p t e m p d i r t e m p n a m e m a t l a b r o o t t o o l b o x d i r Parts of file name and path Build full file name from parts Character to separate file name and internal function name File separator for current platform Name of system's temporary folder Unique name for temporary file Root folder Root folder for specified toolbox
File Com pression g u n z i p g z i p t a r u n t a r u n z i p z i p Uncompress GNU zip files Compress files into GNU zip files Compress files into tar file Extract contents of tar file Extract contents of zip file Compress files into zip file
Search Path
a d d p a t h r m p a t h p a t h s a v e p a t h u s e r p a t h g e n p a t h p a t h s e p p a t h t o o l r e s t o r e d e f a u l t p a t h Add folders to search path Remove folders from search path View or change search path Save current search path View or change user portion of search path Generate path string Search path separator for current platform Open Set Path dialog box to view and change search path Restore default search path
GUI Building
GUI Building Basics
g u i d e Open GUI Layout Editor
Component Selection
GUI Controls and Indicators
f i g u r e a x e s u i c o n t r o l u i t a b l e u i p a n e l u i b u t t o n g r o u p a c t x c o n t r o l
Create figure graphics object Create axes graphics object Create user interface control object Create 2-D graphic table GUI component Create panel container object Create container object to exclusively manage radio buttons and toggle buttons Create Microsoft ActiveX control in figure w indow
Menus and Toolbars u i m e n u u i c o n t e x t m e n u u i t o o l b a r u i p u s h t o o l u i t o g g l e t o o l Create menus and menu items on figure w indow s Create context menu Create toolbar on figure Create push button on toolbar Create toggle button on toolbar
Predefined Dialog Boxes d i a l o g e r r o r d l g h e l p d l g m s g b o x q u e s t d l g u i g e t p r e f u i s e t p r e f w a i t b a r w a r n d l g e x p o r t 2 w s d l g i n p u t d l g l i s t d l g u i s e t c o l o r u i s e t f o n t p r i n t d l g p r i n t p r e v i e w u i g e t d i r u i g e t f i l e u i o p e n u i p u t f i l e u i s a v e Create and display empty dialog box Create and open error dialog box Create and open help dialog box Create and open message dialog box Create and open question dialog box Specify and conditionally open dialog box according to user preference Manage preferences used in uigetpref Open or update w ait bar dialog box Open w arning dialog box Export variables to w orkspace Create and open input dialog box Create and open list-selection dialog box Open standard dialog box for setting object's ColorSpec Open standard dialog box for setting object's font characteristics Print dialog box Preview figure to print Open standard dialog box for selecting directory Open standard dialog box for retrieving files Interactively select file to open and load data Open standard dialog box for saving files Interactively save w orkspace variables to MAT-file
Component Layout
a l i g n m o v e g u i Align user interface controls (uicontrols) and axes Move GUI figure to specified location on screen
g e t p i x e l p o s i t i o n s e t p i x e l p o s i t i o n l i s t f o n t s t e x t w r a p u i s t a c k
Get component position in pixels Set component position in pixels List available system fonts Wrapped string matrix for given uicontrol Reorder visual stacking order of objects
e n u m e r a t i o n e v e n t s m e t h o d s p r o p e r t i e s
Display class enumeration members and names Event names Class method names Class property names
Defining MATLAB Classes Class Definition and Organization c l a s s d e f i m p o r t Class definition keyw ords Add package or class to current import list
Properties p r o p e r t i e s i s p r o p d y n a m i c p r o p s m e t a . p r o p e r t y Class property names Determine if property of object Abstract class used to derive handle class w ith dynamic properties meta.property class describes MATLAB class properties
Methods m e t h o d s i s m e t h o d m e t a . m e t h o d Class method names Determine if method of object meta.method class describes MATLAB class methods
Handle Classes h a n d l e h g s e t g e t d y n a m i c p r o p s m a t l a b . m i x i n . C o p y a b l e d e l e t e f i n d o b j i s a i s v a l i d f i n d p r o p r e l a t i o n a l o p e r a t o r s Abstract class for deriving handle classes Abstract class used to derive handle class w ith set and get methods Abstract class used to derive handle class w ith dynamic properties Superclass providing copy functionality for handle objects Handle object destructor Find handle objects matching specified conditions Determine if input is object of specified class Is object valid handle class object Find meta.property object associated w ith property name Equality and sorting of handle objects
Events e v e n t s n o t i f y a d d l i s t e n e r e v e n t . E v e n t D a t a e v e n t . l i s t e n e r e v e n t . P r o p e r t y E v e n t Event names Notify listeners that event is occurring Create event listener Base class for all data objects passed to event listeners Class defining listener objects Data for property events
e v e n t . p r o p l i s t e n e r
Enum erations e n u m e r a t i o n m e t a . E n u m e r a t e d V a l u e Display class enumeration members and names Describes enumeration members of MATLAB class
Control Save and Load s a v e l o a d s a v e o b j l o a d o b j Save w orkspace variables to file Load variables from file into w orkspace Modify save process for object Modify load process for object
Custom ize MATLAB Behavior c a t h o r z c a t v e r t c a t e m p t y d i s p d i s p l a y n u m e l s i z e e n d s u b s r e f s u b s a s g n s u b s i n d e x s u b s t r u c t Concatenate arrays along specified dimension Concatenate arrays horizontally Concatenate arrays vertically Create empty array Display text or array Display text and numeric expressions Number of array elements Array dimensions Terminate block of code, or indicate last array index Redefine subscripted reference for objects Subscripted assignment Subscript indexing w ith object Create structure argument for subsasgn or subsref
Getting Inform ation About Classes and Objects m e t a c l a s s m e t a . a b s t r a c t D e t a i l s m e t a . c l a s s . f r o m N a m e m e t a . p a c k a g e . f r o m N a m e Obtain meta.class object Find abstract methods and properties Return meta.class object associated w ith named class Return meta.package object for specified package
m e t a . p a c k a g e . g e t A l l P a c k a g e s Get all top-level packages m e t a . c l a s s m e t a . p r o p e r t y m e t a . m e t h o d m e t a . e v e n t m e t a . p a c k a g e m e t a . D y n a m i c P r o p e r t y m e t a . E n u m e r a t e d V a l u e m e t a . M e t a D a t a meta.class class describes MATLAB classes meta.property class describes MATLAB class properties meta.method class describes MATLAB class methods meta.event class describes MATLAB class events meta.package class describes MATLAB packages meta.DynamicProperty class describes dynamic property of MATLAB object Describes enumeration members of MATLAB class Superclass for MATLAB object metadata
Exception Handling
t r y / c a t c h a d d C a u s e( M E x c e p t i o n ) g e t R e p o r t( M E x c e p t i o n ) l a s t( M E x c e p t i o n ) r e t h r o w( M E x c e p t i o n ) t h r o w( M E x c e p t i o n ) t h r o w A s C a l l e r ( M E x c e p t i o n ) M E x c e p t i o n Capture error information Execute statements and catch resulting errors Record additional causes of exception Get error message for exception Last uncaught exception Reissue existing exception Issue exception and terminate function Throw exception as if from calling function
Mem ory Usage c l e a r i n m e m Remove items from w orkspace, freeing up system memory Names of functions, MEX-files, classes in memory
m e m o r y p a c k w h o s
Display memory information Consolidate w orkspace memory List variables in w orkspace, w ith sizes and types
Run Unit Tests r u n t e s t s m a t l a b . u n i t t e s t . T e s t C a s e . r u n m a t l a b . u n i t t e s t . T e s t S u i t e . r u n m a t l a b . u n i t t e s t . T e s t R u n n e r . r u n Run set of tests Run TestCase test Run TestSuite array using TestRunner object configured for text output Run all tests in TestSuite array
m a t l a b . u n i t t e s t . T e s t R u n n e r . a d d P l u g i n Add plugin to TestRunner object m a t l a b . u n i t t e s t . T e s t S u i t e m a t l a b . u n i t t e s t . T e s t m a t l a b . u n i t t e s t . T e s t R u n n e r Class for grouping tests to run Specification of a single test method Class for running tests in matlab.unittest framew ork
Custom Documentation
b u i l d d o c s e a r c h d b Build searchable documentation database
c l a s s c l e a r d e p f u n e x i s t f i e l d n a m e s i m 2 j a v a i m p o r t i n m e m i n s p e c t i s a m e t h o d s m e t h o d s v i e w w h i c h
Determine class of object Remove items from w orkspace, freeing up system memory List dependencies of function or P-file Check existence of variable, function, folder, or class Field names of structure, or public fields of object Convert image to Java image Add package or class to current import list Names of functions, MEX-files, classes in memory Open Property Inspector Determine if input is object of specified class Class method names View class methods Locate functions and files
.NET Libraries Getting Started N E T . a d d A s s e m b l y N E T . i s N E T S u p p o r t e d N E T e n a b l e N E T f r o m N e t w o r k D r i v e N E T . A s s e m b l y N E T . N e t E x c e p t i o n Make .NET assembly visible to MATLAB Check for supported Microsoft .NET Framew ork Summary of functions in MATLAB .NET interface Enable access to .NET commands from netw ork drive Members of .NET assembly Capture error information for .NET exception
Data Types N E T . c r e a t e A r r a y c e l l N E T . d i s a b l e A u t o R e l e a s e N E T . e n a b l e A u t o R e l e a s e Array for nonprimitive .NET types Create cell array Lock .NET object representing a RunTime Callable Wrapper (COM Wrapper) so that MATLAB does not release COM object Unlock .NET object representing a RunTime Callable Wrapper (COM Wrapper) so that MATLAB releases COM object
Events and Delegates B e g i n I n v o k e E n d I n v o k e C o m b i n e R e m o v e Initiate asynchronous .NET delegate call Retrieve result of asynchronous call initiated by .NET System.Delegate BeginInvoke method Convenience function for static .NET System.Delegate Combine method Convenience function for static .NET System.Delegate Remove method
R e m o v e A l l
Enum erations b i t a n d b i t o r b i t x o r b i t n o t Bit-w ise AND Bit-w ise OR Bit-w ise XOR .NET enumeration object bit-w ise NOT instance method
Generic Classes N E T . c o n v e r t A r r a y N E T . c r e a t e G e n e r i c N E T . i n v o k e G e n e r i c M e t h o d N E T . G e n e r i c C l a s s Convert numeric MATLAB array to .NET array Create instance of specialized .NET generic type Invoke generic method of object Represent parameterized generic type definitions
Call MEX-Files m e x e x t i n m e m Binary MEX-file-name extension Names of functions, MEX-files, classes in memory
COM Interface COM Objects a c t x s e r v e r a c t x c o n t r o l a c t x c o n t r o l l i s t a c t x c o n t r o l s e l e c t i s c o m i s p r o p g e t s e t a d d p r o p e r t y d e l e t e p r o p e r t y i n s p e c t p r o p e d i t f i e l d n a m e s i s m e t h o d m e t h o d s m e t h o d s v i e w i n v o k e i s e v e n t e v e n t s e v e n t l i s t e n e r s Create COM server Create Microsoft ActiveX control in figure w indow List currently installed Microsoft ActiveX controls Create Microsoft ActiveX control from GUI Determine w hether input is COM or ActiveX object Determine w hether input is COM object property Get property value from interface, or display properties Set object or interface property to specified value Add custom property to COM object Remove custom property from COM object Open Property Inspector Open built-in property page for control Field names of structure, or public fields of object Determine w hether input is COM object method Class method names View class methods Invoke method on COM object or interface, or display methods Determine w hether input is COM object event List of events COM object can trigger List event handler functions associated w ith COM object events
r e g i s t e r e v e n t u n r e g i s t e r a l l e v e n t s u n r e g i s t e r e v e n t i s i n t e r f a c e i n t e r f a c e s r e l e a s e d e l e t e m o v e l o a d s a v e
Associate event handler for COM object event at run time Unregister all event handlers associated w ith COM object events at run time Unregister event handler associated w ith COM object event at run time Determine w hether input is COM interface List custom interfaces exposed by COM server object Release COM interface Remove COM control or server Move or resize control in parent w indow Initialize control object from file Serialize control object to file
Call MATLAB COM Autom ation Server E x e c u t e F e v a l G e t C h a r A r r a y P u t C h a r A r r a y G e t F u l l M a t r i x P u t F u l l M a t r i x G e t V a r i a b l e G e t W o r k s p a c e D a t a P u t W o r k s p a c e D a t a M a x i m i z e C o m m a n d W i n d o w M i n i m i z e C o m m a n d W i n d o w a c t x G e t R u n n i n g S e r v e r e n a b l e s e r v i c e Q u i t Execute MATLAB command in Automation server Evaluate MATLAB function in Automation server Character array from Automation server Store character array in Automation server Matrix from Automation server w orkspace Matrix in Automation server w orkspace Data from variable in Automation server w orkspace Data from Automation server w orkspace Data in Automation server w orkspace Open Automation server w indow Minimize size of Automation server w indow Handle to running instance of Automation server Enable, disable, or report status of MATLAB Automation server Terminate MATLAB Automation server
Web Services c a l l S o a p S e r v i c e c r e a t e C l a s s F r o m W s d l c r e a t e S o a p M e s s a g e p a r s e S o a p R e s p o n s e Send SOAP message to endpoint Create MATLAB class based on WSDL document Create SOAP message to send to server Convert response string from SOAP server into MATLAB types
C Shared Libraries l o a d l i b r a r y u n l o a d l i b r a r y l i b i s l o a d e d c a l l l i b l i b f u n c t i o n s l i b f u n c t i o n s v i e w l i b s t r u c t Load shared library into MATLAB Unload shared library from memory Determine if shared library is loaded Call function in shared library Return information on functions in shared library Display shared library function signatures in w indow Convert MATLAB structure to C-style structure for use w ith shared library
l i b p o i n t e r l i b . p o i n t e r
Pointer object for use w ith shared library Pointer object compatible w ith C pointer
Application Program m ing Interfaces to MATLAB Use and Create MEX-Files Call MEX-Files m e x e x t i n m e m Binary MEX-file-name extension Names of functions, MEX-files, classes in memory
Build C/C++ MEX-Files m e x d b m e x Build MEX-function from C/C++ or Fortran source code Enable MEX-file debugging (on UNIX platforms)
Build Fortran MEX-Files m e x d b m e x Build MEX-function from C/C++ or Fortran source code Enable MEX-file debugging (on UNIX platforms)
Share MEX-Files v e r c o m p u t e r Version information for MathWorks products Information about computer on w hich MATLAB softw are is running
m e x . g e t C o m p i l e r C o n f i g u r a t i o n s Get compiler configuration information for building MEX-files m e x e x t Binary MEX-file-name extension
Troubleshoot MEX-Files d b m e x i n m e m m e x Enable MEX-file debugging (on UNIX platforms) Names of functions, MEX-files, classes in memory Build MEX-function from C/C++ or Fortran source code
m e x . g e t C o m p i l e r C o n f i g u r a t i o n s Get compiler configuration information for building MEX-files m e x e x t Binary MEX-file-name extension
Desktop Environment
Startup and Shutdown
m a t l a b( W i n d o w s ) m a t l a b( U N I X ) e x i t q u i t m a t l a b r c s t a r t u p f i n i s h Start MATLAB program (Window s platforms) Start MATLAB program (UNIX platforms) Terminate MATLAB program (same as quit) Terminate MATLAB program Startup file for MATLAB program Startup file for user-defined options Termination file for MATLAB program
Basic Settings
p r e f d i r p r e f e r e n c e s Folder containing preferences, history, and layout files Open Preferences dialog box