ankurm.com
Implementing DCT and IDCT in MATLAB
Visit the post for more.