Input Arguments

Input text, specified as a string array, a character vector,
or a cell array of character vectors.

Tips

To find the length of the largest array dimension of str,
use the length function, not
strlength.

Algorithms

strlength counts the number of code units in text.
Code units are bit sequences for encoding characters of a character encoding system. In
some character encodings, such as UTF-16, there are some characters that are encoded
with multiple code units.

If you have a string or a character vector that contains such
characters, then the number of code units is greater than the number
of characters.

length(C) also returns the number of code
units when C is a character vector.

Extended Capabilities

Tall ArraysCalculate with arrays that have more rows than fit in memory.

This function fully supports tall arrays. For
more information, see Tall Arrays.

C/C++ Code GenerationGenerate C and C++ code using MATLAB® Coder™.

Distributed ArraysPartition large arrays across the combined memory of your cluster using Parallel Computing Toolbox™.

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.