char arrays support indexing. Also, string is the name of MATLAB built-in function, so I named the name of the variable to 'str'
str = "This should really be in the MatLab core!";
b = char(str);
ba = length(b);
k = strfind(b,"in the");
stringbuilder = b(k:end);
stringbuilder = string(stringbuilder);
Result
>> stringbuilder
stringbuilder =
"in the MatLab core!"
Best Answer