MATLAB: Is it possible to use STR2DOUBLE on strings with ‘d’ specifying the exponent

dexponentMATLABnanstr2double

I want to convert the string '1d2' to a double using the command STR2DOUBLE in MATLAB.
>> 1d2
ans =
100
>> 1e2
ans =
100
Currently, STR2DOUBLE supports strings with 'e' preceding a power of 10 scale factor. It does not support 'd' preceding a scale factor.
The command STR2DOUBLE('1d2') returns NaN.

Best Answer

As a workaround, please convert all strings containing 'd' preceding power of 10 scale factors to 'e'. Then, you may use the command below in MATLAB:
>> str2double('1e2')
ans =
100