MATLAB: Arnold cat map decryption problem

arnold's cat mapcat mapdigital image processingencryptionimage processingImage Processing Toolbox

i am having problems decrypting the image. please can somebody guide am i making some logical error. i guess i am not writing the decryption code properly

Best Answer

Where did you get that algorithm? Why don't you take a look at mine (attached)?