Correction of matlab syntax and input tuning.