Matlab 2011 and 2013 difference -JPEG encoder
Show older comments
I've downloaded the JPEG encoder from github: https://github.com/pornel/jpeg-compressor The encoder works in Matlab 2011 but works uncorrectly in Matlab 2013 or higher. During analyzing the code step by step in parallel in both version of Matlab I realize that the outputs for bitshift() function are different:
PutBuffer = 2.753693055057920e+14
Matlab 2011:
bitshift(PutBuffer, 8) = 7.444147426295808e+015
Matlab 2013:
bitshift(PutBuffer, 8) = 7.049454220948275e+16
Do You have any idea what is the difference?
Answers (1)
Steven Lord
on 25 Apr 2016
0 votes
See the third row of the table in the "Functionality being removed or changed" item in the Mathematics section of the Release Notes for release R2012b for information about a change to bitshift that I believe is the cause of the behavior you're seeing.
Categories
Find more on Images 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!