MATLAB - String Handling
Identify the error in this MATLAB code:
str = 'Hello';
len = strlength(str);
str = 'Hello';
len = strlength(str);
strlength works only on string data type, not on character arrays.strstr is defined with single quotes, it is a character array, so strlength causes an error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions