Using Matlab dctdemo.m to learn 2D-DCT and JPEG Encoding
Short demo on ZigZag sequence and JPEG compression ratio


The dctdemo.m matlab code  in http://cs.uccs.edu/~cs525/dct/dctlib implements a demonstation of 2D-DCT transformation. It utilizes the functions defined in the dctlib directory.  You can sftp the whole dctlib directory to your designated machine in A210 or lats.eas.uccs.edu, which are installed with MATLAB R2009b package, and then follow the following instruction for computing the transformed coefficients. You can enter each statement on the command window to execute them and observe the results. Here I assume you remote access se-a210-01 (128.198.62.11) for this exercise.