필터 지우기
필터 지우기

Frequency vector of the pwelch?

조회 수: 2 (최근 30일)
Sahaj Sandhu
Sahaj Sandhu 2015년 6월 23일
Hello,
I have an EMG data and I am using pwelch to resolve the frequency spectrum. I have divided my data into individual active zones of different lengths.
[pxx2,F2] = pwelch(activezone2,[],[],[],Fs,'power');
plot(F2,10*log10(pxx2),'r')
powmax2 = max(pxx2)
[~,idxMax2] = max(pxx2)
FreqMax2 = F2(idxMax2)
Pdist2 = cumsum(pxx2);
upperidx2 = find(Pdist2>=Pdist2(end)/2,1,'first')
loweridx2 = find(Pdist2<=Pdist2(end)/2,1,'last')
MidFreq2 = (F2(upperidx2)+F2(loweridx2))/2
and I repeat the same for active zone 3, the values which I am getting for power is different but both the zones are genrating same frequency vector. As a result median frequency is coming out to be the same for different active zones.
I have tried it with different window size, overlap and nfft but the F2 vector doesnt change.
Can somebody guide me on this topic? Thanks..!!

답변 (0개)

카테고리

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