MATLAB: How I can know if a string is empty or not!

string empty

please help me with a code ! thank you !

Best Answer

How about the helpfully named isempty?:
>>isempty('aaa')
ans =
0
>>isempty('')
ans =
1
Note that because strings are just matrices (of characters), it's the same test you use for matrix emptiness.