Using the C Math Library | ![]() ![]() |
Character Arrays
The MATLAB C Math Library also includes routines to create and manipulate character arrays. One-dimensional character arrays are also called strings. Multidimensional character arrays are also called arrays of strings. In an array of strings, each string must be the same length. The routines that create arrays of strings use blanks to pad the strings to the same length. In a cell array of strings, individual strings can be different lengths. For information about cell arrays, see Cell Arrays.
This table lists the MATLAB C Math Library routines used to create character arrays and perform some basic operations on them. The sections that follow provide more detail about using these routines. For more detailed information about using character arrays, see Using MATLAB. For more detailed information about any of the library routines, see the online MATLAB C Math Library Reference.
![]() | Evaluating Arrays for Sparse Storage | Creating MATLAB Character Arrays | ![]() |