Borrar filtros
Borrar filtros

FINDING MAX FREQUENCY OF A EARTHQUAKE DATA

2 visualizaciones (últimos 30 días)
Achintya Roy
Achintya Roy el 31 de Mzo. de 2014
Respondida: Carlos el 31 de Mzo. de 2014
HOW TO FIND THE MAX FREQUENCY FROM AN EARTHQUAKE DATA? AND HOW TO GET THE FOURIER SPECTRUM OF AN EARTHQUAKE DATA.

Respuestas (1)

Carlos
Carlos el 31 de Mzo. de 2014
If you just need to find the maximum frequency, you could calculate the fourier transform and find out the highest frequency containing a significative amount of power. How did you obtain your data? Using an accelerometer? If so you should know the sampling frequency (and you should be sure this sampling frequency satisfies at least the Nyquist Fs>2*Max_Frequency).
Your code should look like this
Fs = %your sampling frequency;
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
Y = fft(y,NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2+1); %Single side spectrum just the positive part of the spectrum

Categorías

Más información sobre Earthquake Engineering en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by