www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/ConvertLPCToCepstralCoefficientsExample.m
%% Convert LPC To Cepstral Coefficients %% % *Note*: This example runs only in R2016b or later. If you are using an % earlier release, replace each call to the function with the equivalent % |step| syntax. For example, myObject(x) becomes step(myObject,x). %% hlevinson = dsp.LevinsonSolver; hlevinson.AOutputPort = true; % Output polynomial coefficients hac = dsp.Autocorrelator; hac.MaximumLagSource = 'Property'; hac.MaximumLag = 9; % Compute autocorrelation lags between [0:9] hlpc2cc = dsp.LPCToCepstral; x = [1:100]'; a = hac(x); %% % Compute LPC coefficients. A = hlevinson(a); %% % Convert LPC to CC. CC = hlpc2cc(A);