Hardware Support

Android Sensor Support from MATLAB

Use MATLAB to acquire accelerometer, magnetometer, orientation, and location data from built-in sensors on your Android device.


Explore gallery (2 images) 

MATLAB® supports the acquisition of data from built-in sensors on your Android™ device. With MATLAB Support Package for Android Sensors, you can log data or query the most recent data available from the supported sensors on your Android smartphone or tablet. You can then analyze the data in MATLAB or build applications that make decisions based on the sensor data.

To use this package, you must also install MATLAB Mobile™ on your Android device.

MATLAB Support Package for Android Sensors lets you acquire and log data from the supported Android sensors to obtain the following measurements:

  • Acceleration on 3-axes
  • Magnetic field on 3-axes
  • Angular velocity on 3-axes
  • Azimuth, roll, pitch
  • Latitude, longitude, altitude, horizontal accuracy, speed, and course

There are several ways to acquire sensor data from your device and access it in MATLAB:

  • Stream sensor data over Wi-Fi to a computer on the same network running MATLAB
  • Stream sensor data to the cloud, then log into MATLAB Online to access it
  • Log sensor data locally when your device is offline, then upload it to MATLAB Drive once you're online

Platform and Release Support

See the hardware support package system requirements table for current and prior version, release, and platform availability.

This support package is available on releases R2014a and later. Learn about Android Sensor Support for R2013b and earlier.

View enhancements and bug fixes in release notes.

Join the Community

Ask a question or share your files with the MATLAB community.


Related Hardware Support Views: MATLAB, Android, Consumer Goods, Ethernet, MathWorks Supported, MATLAB Product Family, Project-Based Learning, Support Package Installer Enabled, Test and Measurement

Ready to install?

Before installing the support package, confirm you have the correct setup. View system requirements and installation options.

Get support package

Software

Required

Recommended

Support Package

Required

Support Package Installer installs this support package and all required third-party software. To start the installer, go to the MATLAB toolstrip and click Add-Ons > Get Hardware Support Packages. For more information, read the documentation

Get support package

Hardware

Required

  • Any Android smartphone or tablet running Android OS version 4.0 or higher

Software

Required

All required third-party software is installed by the Support Package Installer.

Don't see the hardware you're looking for?

Explore the MATLAB Maker Community