MATLAB: Is it a bug

bugMATLABstr2num

str2num('"abc"')
ans =
"abc"

Best Answer

I call this a bug.
My comments
The last lines of str2num() read
if ischar(x) || iscell(x)
x = [];
ok = false;
end
Adding || isstring to the condition solves the problem - I think.