MATLAB: Does using the HIST function on single precision data causes all bins to be marked with an asterisk (“*”) in MATLAB 7.0 (R14)

asteriskbinsdoublehistmakebarsMATLABprecisionsingleunequal

When I execute the following commands
v = [2.408996 0.0833915] ;
hist(v)
I obtain a histogram with bins of equal width. Now if I run the following code
v = single([2.408996 0.0833915] );
hist(v)
I observe that an asterisk ("*") appears on each bin, indicating that the bins are not of equal width (though they actually are).

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0 (R14) that causes the bins to be marked as being of unequal widths when using the HIST function on single precision data.
There are no workarounds.