This MATLAB code provides a routine to solve the convex optimization problem of minimizing scintillation using projected gradient descent and randomized SVD algorithms.