Why do the MEAN and STD functions return the wrong result for large single precision matrices in any release?
Show older comments
If I execute the following commands:
dummy = zeros( 1024, 'single' ) + 200;
mean(dummy(:))
I receive the following result:
ans =
197.1200
But I expected to receive:
ans =
200
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!