Changed output format of the line for matlab and executed the output commands in matlab