Ying Xiong's matlab utilities.