The following shows how to convert everything from after the first _ to the extension as a number. The degree can include fractions. (If you do not need fractions then the code can be simplified.)
Note: this particular implementation will fail if you have additional underscore in the basic file name.
ImageName = 'scrambled_47.2.png';
[~, basename] = fileparts(ImageName);
ScrambleDegree = str2double(regexp(basename, '(?<=_).*$', 'match'))
