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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Lisa Justin
on 17 Jul 2012

i have a signal from an accelerometer with 3 coordinates x,y, z. how do i analyze this signal so i have all three cordinates? Do you think taking an average of all three is right? Or should i just sum all three cordinates? or treat them uniquely for each direction

*No products are associated with this question.*

Answer by Image Analyst
on 17 Jul 2012

Accepted answer

It depends on what you want to do. What do you want to do? You have the acceleration vector. Do you want the acceleration magnitude (like the Pythagorean theorem would give you)? Or do you want something else? If you had the magnitude, what would you do with than information?

Answer by Star Strider
on 17 Jul 2012

I found this routine in the File Exchange:

http://www.mathworks.com/matlabcentral/fileexchange/7398-shock-response-spectrum

There may be others.

## 1 Comment

## Neressa (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/43815#comment_117253

Hello Have you been able to develop an alogorithm to get statistics for the signal from your acclerometer data yet?