MATLAB: How to identify if array is a string

arrayfunctionMATLABstringwhos

i need to identify if array is a string i tried to use
a=whos(A)
any suggestion?

Best Answer

Use the ischar() function.