20171125 rutgers email: Please check https://github.com/dengcai78/MatlabFunc  for the most up-to-date codes.