Create a createMatlab function and changed the input parameters