PSD of a time function

Hello everyone,
I have the acceleration data collected from an accelerometer, and the acquisition time, the acceleration vs time graph is shown in the following image:
My question is, from this graph, how could I calculate in Matlab the PSD function in the frequency domain, from the temporal function shown above?
As an example of the practical problem, I used this code to generate the graph shown:
t = 0:.001:0.25;
x = sin(2*pi*50*t) + sin(2*pi*120*t);
plot(t,x)
Thanks in advance!

3 个评论

See example at doc fft
Thanks for your answer. And how could I obtain the PSD function?
That's what the example shows, specifically...PSD via FFT

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Parametric Spectral Estimation 的更多信息

产品

评论:

dpb
2019-4-28

Community Treasure Hunt

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

Start Hunting!

Translated by