matlab gait processor code