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

📄 ref2pre.m

📁 This is transfer function for matlab.
💻 M
字号:
function a = ref2pre(k);%REF2PRE        a = REF2PRE(k)  Converts the reflection coefficients to%               the prediction coefficients. Note, it is assumed that%		the prediction analysis filter is defined by:%			A(z) = 1 + a1*z^-1 + a2*z^-2 + ...%%	INPUTS:%               k - reflection coefficients.%	OUTPUTS:%		a - prediction coefficients.%                      a0 = 1;%               See also PRE2REF.%            k = k(:);		% make columna = zeros(size(k));p = length(k);a(1) = -k(1);for i = 2:p,                 am = a;        a(i) = -k(i);        for j = 1:i-1,                a(j) = am(j) - k(i)*am(i-j);        endenda = [1;a];

⌨️ 快捷键说明

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