Sensor Data Collection

Collect sensor data from your device

With MATLAB® Mobile™, 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 from MATLAB Mobile. Set camera properties including resolution, autofocus, and flash.

Functions

mobiledevCreate mobiledev object to acquire data from iOS sensors
dispDisplay properties of mobiledev object
accellogReturn logged acceleration data from iOS sensor
angvellogReturn logged angular velocity data from iOS sensor
magfieldlogReturn logged magnetic field data from iOS sensor
orientlogReturn logged orientation data from iOS sensor
poslogReturn logged position data from iOS sensor
discardlogsDiscard all logged data from iOS sensors
cameraConnection to camera on iOS device
snapshotAcquire single image frame from iOS device camera

Topics

Get Started with Sensors

Sensor Data Collection with MATLAB Mobile

Stream sensor data to MATLAB running in the MathWorks® cloud or store data locally.

Sensor Data Streaming Demo

A simple walk-through that demonstrates controlling sensors and acquiring data.

Use Logged Sensor Data Example

This example shows how to plot orientation data using logged sensor data.

Stream Sensor Data to MATLAB on the Cloud

Stream Sensor Data with Sensor Controls

Send sensor data to MATLAB running on MathWorks Cloud using MATLAB Mobile sensor controls.

Stream Sensor Data with mobiledev.logging Property

Stream sensor data to MATLABMATLAB running on the MathWorks cloud using the mobiledev.logging property.

Log Sensor Data Locally

Log Sensor Data Locally

Capture sensor data to a file on your device.

Apple iOS Camera Image Acquisition

Acquire Images from iOS Camera

This example shows how to connect to your iOS mobile device camera and acquire images from it.

Classify Images from iOS Camera Using Pretrained Network

This example shows how to use deep learning to classify images acquired by your iOS mobile device camera.

Featured Examples