The code and data herein distributed reproduce the results published in the paper: Lina Zhuang and Jose M. Bioucas-Dias, "Hyperspectral image denoising and inpainting based on low-rank and sparse representations", Submitted to IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2017.