MATLAB Function Reference    

Data Types

Numeric

[ ] Array constructor
cat Concatenate arrays
class Return object's class name (e.g., numeric)
find Find indices and values of nonzero array elements
ipermute Inverse permute dimensions of multidimensional array
isa Detect object of given class (e.g., numeric)
isequal Determine if arrays are numerically equal
isequalwithequalnans Test for equality, treating NaNs as equal
isnumeric Determine if item is numeric array
isreal Determine if all array elements are real numbers
permute Rearrange dimensions of multidimensional array
reshape Reshape array
squeeze Remove singleton dimensions from array
zeros Create array of all zeros

Characters and Strings

Description of Strings in MATLAB
strings Describes MATLAB string handling
 
Creating and Manipulating Strings
blanks Create string of blanks
char Create character array (string)
cellstr Create cell array of strings from character array
datestr Convert to date string format
deblank Strip trailing blanks from the end of string
lower Convert string to lower case
sprintf Write formatted data to string
sscanf Read string under format control
strcat String concatenation
strjust Justify character array
strread Read formatted data from string
strrep String search and replace
strvcat Vertical concatenation of strings
upper Convert string to upper case
 
Comparing and Searching Strings
class Return object's class name (e.g., char)
findstr Find string within another, longer string
isa Detect object of given class (e.g., char)
iscellstr Determine if item is cell array of strings
ischar Determine if item is character array
isletter Detect array elements that are letters of the alphabet
isspace Detect elements that are ASCII white spaces
regexp Match regular expression
regexpi Match regular expression, ignoring case
regexprep Replace string using regular expression
strcmp Compare strings
strcmpi Compare strings, ignoring case
strfind Find one string within another
strmatch Find possible matches for string
strncmp Compare first n characters of strings
strncmpi Compare first n characters of strings, ignoring case
strtok First token in string
 
Evaluating String Expressions
eval Execute string containing MATLAB expression
evalc Evaluate MATLAB expression with capture
evalin Execute string containing MATLAB expression in workspace

Structures

cell2struct Cell array to structure array conversion
class Return object's class name (e.g., struct)
deal Deal inputs to outputs
fieldnames Field names of structure
isa Detect object of given class (e.g., struct)
isequal Determine if arrays are numerically equal
isfield Determine if item is structure array field
isstruct Determine if item is structure array
orderfields Order fields of a structure array
rmfield Remove structure fields
struct Create structure array
struct2cell Structure to cell array conversion

Cell Arrays

{ } Construct cell array
cell Construct cell array
cellfun Apply function to each element in cell array
cellstr Create cell array of strings from character array
cell2mat Convert cell array of matrices into single matrix
cell2struct Cell array to structure array conversion
celldisp Display cell array contents
cellplot Graphically display structure of cell arrays
class Return object's class name (e.g., cell)
deal Deal inputs to outputs
isa Detect object of given class (e.g., cell)
iscell Determine if item is cell array
iscellstr Determine if item is cell array of strings
isequal Determine if arrays are numerically equal
mat2cell Divide matrix up into cell array of matrices
num2cell Convert numeric array into cell array
struct2cell Structure to cell array conversion

Data Type Conversion

Numeric
double Convert to double-precision
int8 Convert to signed 8-bit integer
int16 Convert to signed 16-bit integer
int32 Convert to signed 32-bit integer
int64 Convert to signed 64-bit integer
single Convert to single-precision
uint8 Convert to unsigned 8-bit integer
uint16 Convert to unsigned 16-bit integer
uint32 Convert to unsigned 32-bit integer
uint64 Convert to unsigned 64-bit integer
 
String to Numeric
base2dec Convert base N number string to decimal number
bin2dec Convert binary number string to decimal number
hex2dec Convert hexadecimal number string to decimal number
hex2num Convert hexadecimal number string to double number
str2double Convert string to double-precision number
str2num Convert string to number
 
Numeric to String
char Convert to character array (string)
dec2base Convert decimal to base N number in string
dec2bin Convert decimal to binary number in string
dec2hex Convert decimal to hexadecimal number in string
int2str Convert integer to string
mat2str Convert a matrix to string
num2str Convert number to string
 
Other Conversions
cell2mat Convert cell array of matrices into single matrix
cell2struct Convert cell array to structure array
datestr Convert serial date number to string
func2str Convert function handle to function name string
logical Convert numeric to logical array
mat2cell Divide matrix up into cell array of matrices
num2cell Convert a numeric array to cell array
str2func Convert function name string to function handle
struct2cell Convert structure to cell array

Determine Data Type

is* Detect state
isa Detect object of given MATLAB class or Java class
iscell Determine if item is cell array
iscellstr Determine if item is cell array of strings
ischar Determine if item is character array
isfield Determine if item is character array
isjava Determine if item is Java object
islogical Determine if item is logical array
isnumeric Determine if item is numeric array
isobject Determine if item is MATLAB OOPs object
isstruct Determine if item is MATLAB structure array

  Programming and Data Types Arrays