matlab function for emd_flow_lambda