This example shows how to capture the acceleration of an Apple mobile device such as an iPhone or iPad. The acceleration is a three dimensional quantity representing the acceleration on each axis of the mobile device. The example shows how to access current values of acceleration and also demonstrates how to plot logged acceleration values. The data is then further analyzed in MATLAB to determine how many steps the person walked during the data collection period.
This example requires the user to first install the MATLAB Support Package for iPhone Sensors which is available here:
To use this example, you will also be required to download the mobile app: Sensor Monitor app by Ko, Young-woo from iTunes.
For more information on acquiring sensor data from your Apple device, see the following resource page: