added matlab script