finish regenerating most matlab figures in pdf format.