Main Content

传感器数据采集

Collect sensor data from your device

WithMATLAB®Mobile™orMATLAB Online™, you can collect sensor and camera data from your iOS 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 iOS mobile device fromMATLAB MobileorMATLAB Online. You can set camera properties including resolution, autofocus, and flash.

Functions

mobiledev Createmobiledevobject to acquire data from iOS sensors
mobiledevlist List of mobile devices with accessible sensor data
disp Display properties ofmobiledevobject
accellog Return logged acceleration data from iOS sensor
angvellog Return logged angular velocity data from iOS sensor
magfieldlog Return logged magnetic field data from iOS sensor
orientlog Return logged orientation data from iOS sensor
poslog Return logged position data from iOS sensor
discardlogs Discard all logged data from iOS sensors
camera Connection to camera on iOS device
snapshot Acquire single image frame from iOS device camera

Topics

Get Started with Sensors

Log Sensor Data Locally

Stream Sensor Data toMATLABon the Cloud

Apple iOSCamera Image Acquisition