We provide Matlab implementations of TWF as follows.
1D TWF module
Example: 1D Gaussian measurements
Example: 2D coded diffraction measurements
Stanford quad example and image
The code is adapted from the Wirtinger flow code designed and implemented by E. J. Candès, X. Li, and M. Soltanolkotabi.