Main Content

传感器数据Collection

Collect sensor data from your device

WithMATLAB®Mobile™orMATLAB Online™, you can collect sensor and camera data from your Android™ device and log the data in MATLAB. Use MATLAB to process this data in various ways, including creating plots, or, for camera data, process the images.

You can collect data from these sensors:

  • Acceleration

  • Angular velocity

  • Magnetic field

  • Orientation

  • Position

You can also access the camera and acquire images on your Android mobile device fromMATLAB MobileorMATLAB Online. You can set camera properties including resolution, autofocus, and flash.

Functions

mobiledev Createmobiledevobject to acquire data fromAndroidsensors
mobiledevlist List of mobile devices with accessible sensor data
disp Display properties ofmobiledevobject
accellog Return logged acceleration data fromAndroidsensor
angvellog Return logged angular velocity data fromAndroidsensor
magfieldlog 返回记录的磁场数据Androidsensor
orientlog Return logged orientation data fromAndroidsensor
poslog Return logged position data fromAndroidsensor
discardlogs Discard all logged data fromAndroidsensors
camera Connection to camera onAndroiddevice
snapshot Acquire single image frame fromAndroiddevice camera

Topics

Get Started with Sensors

Log Sensor Data Locally

Stream Sensor Data toMATLABon the Cloud

AndroidCamera Image Acquisition