8.2.57.11 string.strlength_bytes

Method: out = strlength_bytes (obj)

String length in bytes.

Gets the length of each string in obj, counted in Unicode UTF-8 code units (bytes). This is the same as numel(str) for the corresponding Octave char vector for each string, but may not be what you actually want to use. You may want strlength instead.

Returns double array of the same size as obj. Returns NaNs for missing strings.

See also: string.strlength