MATLAB code for the paper
K. Huang, Y. C. Eldar, and N. D. Sidiropoulos, ``Phase retrieval from 1D Fourier measurements: Convexity, uniqueness, and algorithms'', IEEE TSP, Dec. 2016.

main functions:
1. pr1d_admm.m			The CoRK algorithm
2. solver_PR_1Dfft_REDUX.m	The SDP based algorithm, requires the installation of tfocs

additional functions:
1. linop_PR_1Dfft.m		linear operator required by tfocs
2. linop_PR_1Dfft_REDUX.m	linear operator required by tfocs
3. MPE.m			transforms an arbitrary signal into an equivalent minimum phase signal (that gives the same Fourier magnitude)
4. FienupFFT.m			Fienup's algorithm for 1D Fourier phase retrieval

simulations:
1. Test1.m			simulation in Section III.A
2. Test3.m			noiseless simulation in Section III.B
3. Test4.m			noisy simulation in Section III.B