Update script_example.m

Modified according to script_example of previous version