Here you can find the code to build the Ramanujan Matrix and do the compressive sensing and denoising of images. The blogpost at https://archana1998.github.io/project/compressive-sensing/ has detailed explanations regarding the implementations
archana1998/compressive-sensing-denoising
Compressed sensing and denoising of images using sparse representations
MATLAB