필터 지우기
필터 지우기

amplitude spectrum

조회 수: 15 (최근 30일)
deji
deji 2011년 11월 13일
hi, how do i plot the amplitude spectrum of speech segment with a given sampling frequency fs, a given length and known number of bits. thanis in advance

채택된 답변

Wayne King
Wayne King 2011년 11월 13일
There are a couple things you can do. Let x be your speech signal and fs your sampling frequency. The following two are power estimates.
plot(psd(spectrum.periodogram,x,'Fs',fs));
If you do not want it in dB:
psdest = psd(spectrum.periodogram,x,'Fs',fs);
plot(psdest.Frequencies,psdest.Data);
xlabel('Hz'); grid on;
Finally, just using fft()
xdft = fft(x);
% assume x is even length
xdft = xdft(1:length(x)/2+1);
freq = 0:fs/length(x):fs/2;
plot(freq,abs(xdft));
xlabel('Hz');
  댓글 수: 2
deji
deji 2011년 11월 13일
thank u very much..
deji
deji 2011년 11월 13일
is the power spectral density estimate the same thing as the amplitude spectrum.. what i just read about it now shows to be something else

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

추가 답변 (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