update matlab differences