add Matlab script