Need help with periodogram

1 次查看(过去 30 天)
G
G 2018-10-26
评论: G 2018-10-26
I am trying to turn this plot into a periodogram and I am not sure where to start... From frequencies 0.4Hz to 5 Hz Code:
clear,clc
load('DATA_01_TYPE01.mat')
A = sig;
x = A(2,1:1000)
t=1:1:1000;
subplot(3,1,1)
plot(t,x)
  7 个评论
G
G 2018-10-26
Yes. Then how do I plot my x values on the y axis for the periodogram plot
G
G 2018-10-26
Right now it is just a diagonal line
clear,clc
load('DATA_01_TYPE01.mat')
A = sig;
x = A(2,1:1000);
[pxx,w]=periodogram(x,[],[0.4 5]);
plot(w,10*log(pxx))
xlim([0.4 5]);
xlabel('Frequency (Hz)')
title('Spectrum by Periodogram')

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multirate Signal Processing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by