Setup matlab mode