PSD of a time function

조회 수: 5 (최근 30일)
Daniel González
Daniel González 2019년 4월 27일
댓글: dpb 2019년 4월 28일
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
Daniel González
Daniel González 2019년 4월 28일
Thanks for your answer. And how could I obtain the PSD function?
dpb
dpb 2019년 4월 28일
That's what the example shows, specifically...PSD via FFT

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by