matlab syntax fixes