Code covered by the MathWorks Limited License

Highlights from
iPhone and iPad Sensor support from MATLAB


4.0 | 1 rating Rate this file 128 Downloads (last 30 days) File Size: 1.04 MB File ID: #40858
image thumbnail

iPhone and iPad Sensor support from MATLAB



31 Jul 2013 (Updated )

Use MATLAB to acquire sensor data from built-in sensors on your iPhone or iPad.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

This submission enables MATLAB to access onboard Sensors on iPhone and iPad. With this submission, you can access a mobile device’s accelerometer, magnetometer, location, orientation and compass information directly from MATLAB running on your computer. You can access current and logged sensor data, and you can use MATLAB to visualize and analyze the mobile sensor data or make decisions based on the acquired data.

To use this submission, the computer and iPhone/iPad must be on the same network. The submission includes the necessary MATLAB files and a read me document for initial setup.

In order to use this support, you must first install the “Sensor Monitor” mobile app available from the Apple app store, and make an in-app purchase of the Pro functionality.

For more information about MATLAB iPhone sensor support:

To access Android sensors from MATLAB:

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
10 Apr 2014 Steve

I was able to receive only tens of GPS measurements over the 'Network' mode no matter how long I try to get the measurement . The example of showLatestValues(obj) in the 'capturing and mapping GPS" also lists the log size of 1667x3 for accel and only 12x1 for GPS Lat and Long. Anyone has an idea of what went wrong?

09 Sep 2013 Misha

Actually, this submission requires MATLAB 13a or later.

09 Sep 2013 Ryszard Maciol

Problems solved - it requires Matlab2013b and on windows firewall has to be off

06 Sep 2013 Ryszard Maciol

I got the following error:

>> obj = sensorgroup('AppleMobile')
Warning: The following error was caught while executing 'matlab.mobilesensor.internal.MobileSensorController' class destructor:
Attempt to reference field of non-structure array.
> In sensorgroup>sensorgroup.sensorgroup at 395
Failure to load the requested plugin:

31 Jul 2013

Updated File

01 Aug 2013

Edited Title

02 Aug 2013

Updated file.

05 Aug 2013

Updated file.

20 Aug 2013

Updated file and readme.

27 Aug 2013

Updated file.

16 Sep 2013

Updated installation (setupmobile.m) file now checks for supported MATLAB version numbers.

Contact us