Code covered by the MathWorks Limited License

Highlights from
iPhone and iPad Sensor support from MATLAB (R2013a, R2013b, R2014a)

4.0

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

iPhone and iPad Sensor support from MATLAB (R2013a, R2013b, R2014a)

by

 

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
Description

This submission enables MATLAB to access onboard Sensors on iPhone and iPad.
To use iPhone sensors from MATLAB R2014b, see:
www.mathworks.com/matlabcentral/fileexchange/47974

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.

https://itunes.apple.com/us/app/sensor-monitor/id381075251?mt=8

For more information about MATLAB iPhone sensor support:

http://www.mathworks.com/iphone-sensor

To access Android sensors from MATLAB:

http://www.mathworks.com/matlabcentral/fileexchange/40876

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
MATLAB Search Path
/
/sensorgroup
/sensorgroup/Examples
/sensorgroup/Examples/html
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
21 Oct 2014 MathWorks Mobile Sensor Connectivity Team

Philip,
What version of MATLAB are you using?
Also did you run setupmobile.m script?

Thanks.

18 Oct 2014 Philip

As soon as I type "obj = sensorgroup('AppleMobile')"
it comes to the follwing error:

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 398
Undefined variable "asyncio" or class "asyncio.Channel".

So what's my line? Any ideas?

30 Sep 2014 MathWorks Mobile Sensor Connectivity Team

ios

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:
C:\Users\admin\Desktop\sensorgroup\+matlab\+mobilesensor\+internal\..\..\..\private\win64\mobilesensormlconverter.dll.

Updates
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.

03 Oct 2014

Updated title to indicate supported releases.

20 Oct 2014

Added link for R2014b support.

Contact us