⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lpc2spec.m

📁 this is audio lpca analysis system,you can use it to do the audio analysis
💻 M
字号:
function [features,F,M] = lpc2spec(lpcas, nout)% [features,F,M] = lpc2spec(lpcas,nout)%    Convert LPC coeffs back into spectra%    nout is number of freq channels, default 17 (i.e. for 8 kHz)% 2003-04-11 dpwe@ee.columbia.edu  part of rastamatif nargin < 2  nout = 17;end[rows, cols] = size(lpcas);order = rows - 1;gg = lpcas(1,:);aa = lpcas./repmat(gg,rows,1);% Calculate the actual z-plane polyvals: nout points around unit circlezz = exp((-j*[0:(nout-1)]'*pi/(nout-1))*[0:order]);% Actual polyvals, in power (mag^2)features =  ((1./abs(zz*aa)).^2)./repmat(gg,nout,1);F = zeros(cols, floor(rows/2));M = F;for c = 1:cols;  aaa = aa(:,c);  rr = roots(aaa');  ff = angle(rr');%  size(ff)%  size(aaa)  zz = exp(j*ff'*[0:(length(aaa)-1)]);  mags = sqrt(((1./abs(zz*aaa)).^2)/gg(c))';    [dummy, ix] = sort(ff);  keep = ff(ix) > 0;  ix = ix(keep);  F(c,1:length(ix)) = ff(ix);  M(c,1:length(ix)) = mags(ix);end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -