Android sensor data acquisition – azimuth, pitch and roll

Capture the orientation of a mobile device from a computer running MATLAB.

1.7K 次下载

更新时间 2013/8/26


This example shows how to capture the orientation of an Android mobile device such as a mobile phone or tablet. The orientation is defined as a combination of three angular quantities: Azimuth, pitch, and roll. The example shows how to access current values of orientation and also demonstrates how to plot logged orientation values.

This example requires the user to first install the MATLAB Support Package for Android Sensors which is available here:

To use this example, you will also be required to download the mobile app: SensorUdp app by Takashi, Sasaki from Google Play.

For more information on acquiring sensor data from your Android device, see the following resource page:


MathWorks Mobile Sensor Connectivity Team (2023). Android sensor data acquisition – azimuth, pitch and roll (, MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013a
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明

Updated File.