File Exchange

image thumbnail


version (7.58 KB) by Victor v. Spaandonk
Function to record, analyze and visualize Android sensor data


Updated 31 Mar 2017

View License

Easily record any or all sensor streams from an Android device through MATLAB mobiledev.
Available sensors include Acceleration, Angular Velocity, Orientation, Magneto and GPS.
Options include sampling frequency, recording time and visualization opts.
The data struct that is passed back contains per sensor:
- Data vectors
- Time vector
- Max
- Min
- Mean
- Variance
- Peak2RMS ratio
- Peak2Peak distance
- Mean frequency
note: visualizations opions include: printResults, plotData, plotFreq. If signal processing toolbox is not installed, set plotFreq = false.

Comments and Ratings (3)

Kumar E

am getting this error

Error in recordAndroidData (line 64)
Create a link to your mobile device




MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor