www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/ConvertLPCCoefficientsToRCCoefficientsExample.m
%% Convert LPC Coefficients To RC 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). %% % Convert the linear prediction coefficients to reflection coefficients: load mtlb hlevinson = dsp.LevinsonSolver; hlevinson.AOutputPort = true; hlevinson.KOutputPort = false; hac = dsp.Autocorrelator; hlpc2rc = dsp.LPCToRC; hac.MaximumLagSource = 'Property'; %% % Compute autocorrelation for lags between [0:10] hac.MaximumLag = 10; a = hac(mtlb); A = hlevinson(a); % Compute LPC coefficients [K, P] = hlpc2rc(A); % Convert to RC