Function Summary
MATLAB provides these functions for working with character arrays:
- Functions to Create Character Arrays
- Functions to Modify Character Arrays
- Functions to Read and Operate on Character Arrays
- Functions to Search or Compare Character Arrays
- Functions to Determine Class or Content
- Functions to Convert Between Numeric and Text Data Types
- Functions to Work with Cell Arrays of Character Vectors as Sets
Functions to Create Character Arrays
Function Description
'chr' Create the character vector specified between quotes.
blanks Create a character vector of blanks.
sprintf Write formatted data as text.
strcat Concatenate character arrays.
char Concatenate character arrays vertically.
Functions to Modify Character Arrays
Function Description
deblank Remove trailing blanks.
lower Make all letters lowercase.
sort Sort elements in ascending or descending order.
strjust Justify a character array.
strrep Replace text within a character array.
strtrim Remove leading and trailing white space.
upper Make all letters uppercase.
6 Characters and Strings