First homodyne filtering, then phase unwrapping with the MATLAB unwrap() function.