Median Frequency(Fmed)
3 ビュー (過去 30 日間)
古いコメントを表示
I need help finding the Median frequency of a power spectram. (Fmed), I am new to matlab so any helo will be really appreciated.
0 件のコメント
採用された回答
Wayne King
2012 年 4 月 9 日
Hi Shenal, you can do the following:
t = 0:0.001:1-0.001;
x = cos(2*pi*50*t-pi/4)+0.5*sin(2*pi*100*t)+randn(size(t));
psdest = psd(spectrum.periodogram,x,'Fs',1000,'NFFT',length(x));
normcumsumpsd = cumsum(psdest.Data)./sum(psdest.Data);
Ind = find(normcumsumpsd <=0.5,1,'last');
fprintf('Median frequency is %2.3f Hz\n',psdest.Frequencies(Ind));
2 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!