MATLAB: ‘setprecision’, 24

featureMATLABprecisionsystem_dependent

Why are the two results below the same? I would like to simulate single precision with system_dependent('setprecision' , 24).
>> system_dependent('setprecision', 64)
>> 10000*sqrt(exp(pi))-48104
ans =
0.773809653510398
>> system_dependent('setprecision', 24)
>> 10000*sqrt(exp(pi))-48104
ans =
0.773809653510398

Best Answer

system_dependent('setprecision')... I seem to recall that it only ever had effect on windows and only for some of the older releases. You could find more information on Yair's undocumented-matlab site.