Below you can download the MATLAB code to reproduce the experiments in:
J. Romberg, "Imaging via Compressive Sampling," Signal Processing Magazine, March 2008. (pdf)

You will need:
  • MATLAB version 7.0 or higher
  • A mex compiler (usually included with MATLAB). Pre-compiled mex code is included for the Mac Intel platform.
To install:
  1. Download the zip fie
  2. Unzip, and place unarchived directory where you want it on your hard drive
  3. Compile the "noiselet" code. In MATLAB:
    >> cd SPmag-CS-Code/Measurements
    >> mex realnoiselet.c
The main file is camera_recovery_noiselet.m. To reproduce the figure in the paper, vary K2 from 0 to 30000 as you see fit.