Borrar filtros
Borrar filtros

amplitude spectrum

15 visualizaciones (últimos 30 días)
deji
deji el 13 de Nov. de 2011
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

Respuesta aceptada

Wayne King
Wayne King el 13 de Nov. de 2011
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 comentarios
deji
deji el 13 de Nov. de 2011
thank u very much..
deji
deji el 13 de Nov. de 2011
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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by