Matlab 2011 and 2013 difference -JPEG encoder

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?

回答(1 个)

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.

类别

帮助中心File Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by