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?

Antworten (1)

Steven Lord
Steven Lord am 25 Apr. 2016

0 Stimmen

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.

Kategorien

Mehr zu Images finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 25 Apr. 2016

Beantwortet:

am 25 Apr. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by