Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
3d accelerometer visualization

Subject: 3d accelerometer visualization

From: Carl

Date: 27 Aug, 2013 00:48:09

Message: 1 of 2

I am trying to make a cube or a sphere rotate in a 3d plane based on the movement of my accelerometer. My professor showed us him doing this but did not go into detail and I cannot find anything related to this in this forum or elsewhere. If someone could help me with the coding for this or at least get me started that would be great.

Subject: 3d accelerometer visualization

From: Steven_Lord

Date: 27 Aug, 2013 13:55:43

Message: 2 of 2



"Carl " <csh56@drexel.edu> wrote in message
news:kvgt08$2ld$1@newscl01ah.mathworks.com...
> I am trying to make a cube or a sphere rotate in a 3d plane based on the
> movement of my accelerometer. My professor showed us him doing this but
> did not go into detail and I cannot find anything related to this in this
> forum or elsewhere. If someone could help me with the coding for this or
> at least get me started that would be great.

Android, iOS, or other? For the first two take a look at the files posted by
the MathWorks Mobile Sensor Connectivity Team:

http://www.mathworks.com/matlabcentral/fileexchange/authors/331522

For something else the Data Acquisition Toolbox may be of use to you.

http://www.mathworks.com/products/daq/

Once you've obtained that information, take a look at the ROTATE3D function.

Alternately, you might want to ask your professor for additional detail or
assistance particularly if you think this may come up in the context of a
project or an exam.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us