MATLAB: Length of a string

string

Is there a function that can return the length of a string? I have tried using size. but for some reason it is not going so well.

Best Answer

str='abcdefe'
size(str)
length(str)
numel(str)