[問題]有關power spectral density & FFT 已回收
想請問各位先進
我對一筆訊號做psd出來
nfft=round(length(x)/2); % x=2516x1
[p,f]=psd(x,nfft,freq,nfft,round(nfft/2),'mean'); % p=630x1
p是power,f是頻率 對吧
然後我的power最大值擷取幾個如下
35.5889
76.0922
186.4724
333.303
237.6208
107.4745
13.8933
然後做圖 想請問power的單位是什麼? dB? amplitude? psd? Magnitude?
(我的取樣頻率sample rate 是40 Hz)
plot(f,p/□); % 在這邊我不知道要除以多少
ylabel('□'); % 所以這邊的單位就不知要標什麼
不過我有試了幾個努力,去查了資料
The power spectral density (PSD) (or spectral power distribution (SPD) of
the signal) are in fact the square of the FFT (magnitude).
It describes how the power of a signal is distributed with frequency.
這是說power是magnitude的平方嗎?
所以說我要
plot(f,p/(40*10)); % 所以我這樣除對嗎?
ylabel('Power Spectral Density (cm2/Hz');
懇請各位先進解答囉.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.134.181.170