Frisbee Golf in Matlab with accelerometer