- 积分
- 235
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-4-22
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
还是matlab强大
Obtain the periodogram of the Wolf (relative sunspot) number data sampled yearly between 1700 and 1987.
Load the relative sunspot number data. Obtain the periodogram using the default rectangular window and number of DFT points (512 in this example).
The sampling rate for these data is 1 sample/year.
Plot the periodogram.
load sunspot.dat
relNums=sunspot(:,2);
[pxx,f] = periodogram(relNums,[],[],1);
plot(f,10*log10(pxx))
xlabel('Cycles/Year'); ylabel('dB');
title('Periodogram of Relative Sunspot Number Data');
You see in the preceding figure that there is a peak in the
periodogram at approximately 0.1 cycles/year, which indicates a period
of approximately 10 years.
好方便!
|
|