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 the MATLAB Support Package for Android Sensors, you can log data or query the most recent data available from the supported sensors on your Android device. These include motion sensors like the accelerometer and position sensors like the GPS. Measurements such as acceleration, magnetic field, latitude, longitude, and altitude can be viewed on your Android smartphone and 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.

The MATLAB Support Package for Android Sensors lets you acquire and log data from the supported Android sensors to obtain the indicated 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

Prior Release Support

For Android Sensor support for MATLAB versions R2013b or earlier see: Android Sensor Support for R2013b and earlier.

Platform Support

Available on 64-bit Microsoft® Windows®, 64-bit Mac OS X, and 64-bit Linux®.

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




Support Package


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



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



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