Neuromechanics Matlab scripts