See ApproximateMessagePassing.m or PhaseTransitionPlot.m to see how to call the function reconstructAmp.

The function reconstructs a sparse vector x of dimension N from m linear measurements.

phasetransition.fig showes the result of executing PhaseTransitionPlot.m.
