How to plot LPC spectrum
I have a 10th order LPC with coefficients
and i want to plot the LPC spectrum. on the X axis i want to have the
frequency (0Hz-4000Hz)and on the Y axis the magintude in dbs
How i do that in matlab??
use freqz command.
[H,F] = freqz(b,a,N, Fs),
where b = ; (coeffs of numerator polynomial)
a = [a0 a1 ... a_p] (lpc coefficients)
which are coeffs of denom polynomial.
N = number of points on the frequency axis
(samples of the spectrum), say 256 or 512.
H is the frequency response of the filter.
Fs is the sampling frequency in Hz.
You seem to have used Fs = 8000.
You will get the LP spectrum, which is
(mostly) the envelope of short-time
--- ee41gi wrote:
> Hi guys
> I have a 10th order LPC with coefficients
> and i want to plot the LPC spectrum. on the X axis i
> want to have the
> frequency (0Hz-4000Hz)and on the Y axis the
> magintude in dbs
> How i do that in matlab??