Method Reference: 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.

Source Code: string