📄 miphapol.m
字号:
function b=miphapol(a)
% Converts the polynomial a into a minimum phase one.
%
% Programmed by: Dimitris Manolakis, 1995
%
%-----------------------------------------------------------
% Copyright 2000, by Dimitris G. Manolakis, Vinay K. Ingle,
% and Stephen M. Kogon. For use with the book
% "Statistical and Adaptive Signal Processing"
% McGraw-Hill Higher Education.
%-----------------------------------------------------------
c=a(1);
a=a/c;
z=roots(a);
r=abs(z);
theta=angle(z);
N=length(z);
for k=1:N
if r(k)<1
else
r(k)=1/r(k);
theta(k)=-theta(k);
z(k)=r(k)*cos(theta(k))+sqrt(-1)*r(k)*sin(theta(k));
end
end
b=c*poly(z);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -