matlab script for initializing the parameters automatically. when running, remember to add the script's path to your matlab file path.