MATLAB Function Reference    

Character String Functions

 

General
abs Absolute value and complex magnitude
eval Interpret strings containing MATLAB expressions
real Real part of complex number
strings MATLAB string handling

 

String to Function Handle Conversion
func2str Constructs a function name string from a function handle
str2func Constructs a function handle from a function name string

 

String Manipulation
deblank Strip trailing blanks from the end of a string
findstr Find one string within another
lower Convert string to lower case
strcat String concatenation
strcmp Compare strings
strcmpi Compare strings, ignoring case
strjust Justify a character array
strmatch Find possible matches for a string
strncmp Compare the first n characters of strings
strncmpi Compare the first n characters of strings, ignoring case
strrep String search and replace
strtok First token in string
strvcat Vertical concatenation of strings
symvar Determine symbolic variables in an expression
texlabel Produce the TeX format from a character string
upper Convert string to upper case

 

String to Number Conversion
char Create character array (string)
int2str Integer to string conversion
mat2str Convert a matrix into a string
num2str Number to string conversion
sprintf Write formatted data to a string
sscanf Read string under format control
str2double Convert string to double-precision value
str2mat String to matrix conversion
str2num String to number conversion

 

Radix Conversion
bin2dec Binary to decimal number conversion
dec2bin Decimal to binary number conversion
dec2hex Decimal to hexadecimal number conversion
hex2dec Hexadecimal to decimal number conversion
hex2num Hexadecimal to double number conversion

 Sound Processing Functions File I/O Functions