Documentos de Académico
Documentos de Profesional
Documentos de Cultura
methods
function out=LPCToCepstral
%LPCToCepstral Convert linear prediction coefficients to cepstral co
efficients
% HLPC2CC = signalblks.LPCToCepstral returns a System object, HLPC
2CC,
% that converts linear prediction coefficients (LPCs) to cepstral
% coefficients (CCs).
%
% HLPC2CC = signalblks.LPCToCepstral('PropertyName', PropertyValue
, ...)
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
%
assumed to be 1.
PredictionErrorInputPort
%
%
CepstrumLengthSource
CepstrumLength
%
%
%
%
%
%
om the
is
CC = step(HLPC2CC, A, P) converts LPC coefficients to cepstral
coefficients, using P as the prediction error power, when the
PredictionErrorInputPort property is true.
LPCToCepstral methods:
step - See above description for use of this method
LPCToCepstral properties:
nput
icients
ts
%
%
%
hac = signalblks.Autocorrelator;
hac.MaximumLagSource = 'Property';
hac.MaximumLag = 9;
% Compute autocorrelation lags betwe
%
%
%
%
%
%
%
%
hlpc2cc = signalblks.LPCToCepstral;
x = [1:100]';
a = step(hac, x);
A = step(hlevinson, a); % Compute LPC coefficients
CC = step(hlpc2cc, A); % Convert LPC to CC.
en [0:9]
end
function getHiddenProps(in) %#ok<MANU>
end
end
properties
%CepstrumLength Number of output cepstral coefficients
% Set the length of the output cepstral coefficients vector as a
% scalar numeric integer. This property is applicable when the
% CepstrumLengthSource property is 'Property'. The default value of
% this property is 10.
CepstrumLength;