matlab script working