Given many MatLab functions can easily handle strings, cellstrings and char arrays in their stride, is there a function which allows me to test if my variable is any of these?
I am aware that a simple function would be
function output = isText(myVar)
output = isstring(myVar)||ischar(myVar)||iscellstr(myVar);
but I feel like there should already by a function for this which is highly optimised?
I am sorry if this has been asked before, but if it has, the keywords are so used that this question is nowhere to be seen.