Median Frequency(Fmed)

조회 수: 2 (최근 30일)
shez96
shez96 2012년 4월 9일
댓글: krn99 2017년 4월 5일
I need help finding the Median frequency of a power spectram. (Fmed), I am new to matlab so any helo will be really appreciated.

채택된 답변

Wayne King
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
shez96
shez96 2012년 4월 10일
THanks for that
krn99
krn99 2017년 4월 5일
is that above code is applicable for 200000 sample emg signal

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

추가 답변 (1개)

Greg Dionne
Greg Dionne 2016년 10월 28일
Try: medfreq
Introduced in R2015a.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by