slight modifications to matlab input creation.