MATLAB code for the random demodulator and constrained random demodulator