matlab-script for making Reference format