f5 is also wrong in MATLAB implementation, waiting for response