string.length
string: N = length (str)
Length of a string vector.
N = length (str) returns the size of the longest dimension of the string array str, unless any of its dimensions has zero length, in which case length (D) returns 0.
N = length (str)
length (D)
Source Code: string