added 'initial function' callback for springmass_params.m