how to calculate FFT and spectrum of acceleration sensor (x,y,z) in python -


i acceleration data (x,y,z) captured smartphone. , want calculate fft , spectrum using python. so, can me how this?

thank you

the following code:

import numpy np import matplotlib.pyplot plt scipy.fftpack import fft, ifft, fftfreq 

load acceleration data

df = np.loadtxt('acceldata1.dat') 

this case i'm using y axis

n=len(data) y = data[0:n,1:2] 

using fftfreq calculate fft

req=fftfreq(n) 

in experiment, want calculate fft, spectrum , filter technique, i'm confusing how start fft using acceleration data (x,y,z) because i'm new in signal processing.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -