I want to convert the string '1d2' to a double using the command STR2DOUBLE in MATLAB.
>> 1d2ans = 100>> 1e2ans = 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