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

📄 atok.m

📁 信号处理,是一本国处优秀教材的附带程序源码,相信对大家有用!
💻 M
字号:
function k = atok(a)%ATOK      converts AR polynomial to reflection coefficients%----%   Usage:   K = atok(A)%        where each column of A contains polynomial coeffs%          and   "    "    of K contains PARCOR coeffs%%     If A is matrix, each column is processed separately.%   see also KTOA%---------------------------------------------------------------% copyright 1994, by C.S. Burrus, J.H. McClellan, A.V. Oppenheim,% T.W. Parks, R.W. Schafer, & H.W. Schussler.  For use with the book% "Computer-Based Exercises for Signal Processing Using MATLAB"% (Prentice-Hall, 1994).%---------------------------------------------------------------[M,N] = size(a);if M==1               %-- make row into column   a = a(:);   [M,N] = size(a);  endk = zeros(M-1,N);     %-- # refl. coeffs = # of roots = degree-1for i=M-1:-1:1   k(i,:) = a(i+1,:);   b = flipud(conj(a));   kmag = k(i,:).*conj(k(i,:));   for j=1:N      a(:,j) = ( a(:,j) - k(i,j)*b(:,j) ) ./ (1 - kmag(j));   end   a(i+1,:) = [];end

⌨️ 快捷键说明

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