function [F G g]=Denom_Cheby(n,eps_sq,alfa)
% All the results are obtained in lambda square domain.
% Given n and alfa Compute G
% Here computations are carried out in several steps
% Step 1: find if n is odd or even.
% Step 2: if n is odd
% x=lambda^2
%---------------------------
Tn=poly_cheby (n);
Y=[alfa*alfa 0];%Y=alfa^2*x; Row vector
z=[1 -1];%[x-1]; Row Vector
n1=length(Tn);
% check if n is odd or even
k=n1/2;k=fix(k);
% n is odd case
if n>1
if abs((k-n1/2))==0;%n is odd
nT=n1/2;T=poly_oddterms(Tn);
%Chebyshev poly with odd terms
% Y loop;
A=[T(1)];
for i=1:nT-1;% Start Y loop
B=[T(i+1)];%polynomial
C=conv(A,Y);%C=AY
C=vector_sum(C,B);%C=AY+B
A=C;% Row vector
end;%for loop ends here
T=C;
% (x-1) loop
A=[T(nT)];
for i=1:nT-1
B=T(nT-i)*poly_xn(i);%B=T(i+1)*Y
A=conv(A,z);
C=vector_sum(A,B);
A=C;
end;% for loop ends here
G1=C;
G2=conv(G1,G1);
Z3=eps_sq*Y;
G3=conv(G2,Z3);
end;%if n is odd loop ends here
%--------------------------------------
% if n is an even integer
if abs((k-n1/2))>0; % n is even
nk=n/2;
T=poly_eventerms(Tn);%Chebyshev poly with even terms
% Y loop;
A=[T(1)];
for i=1:nk;% Start Y loop
B=[T(i+1)];%polynomial
C=conv(A,Y);%C=AY
C=vector_sum(C,B);%C=AY+B
A=C;% Row vector
end;%for loop ends here
T=C;
% z loop
A=[T(nk+1)];
for i=1:nk
B=T(nk-i+1)*poly_xn(i);%B=T(nk-i+1)*Y
A=conv(A,z);
C=vector_sum(A,B);
A=C;
end;% for loop ends here
G1=C;
G2=conv(G1,G1);
G3=conv(G2,[eps_sq]);
end
% end of n=even ineger loop
end
%n=1 case
if n==1
G3=eps_sq*Y;
end
%
F=[1];
for i=1:n
F=conv(F,z);
end
G=vector_sum(F,G3);
%
% Construction of g(lambda)
r=roots(G);
zr=sqrt(r);
g1=abs(G(1));
g1=sqrt(g1);
g=g1*poly(-zr);
return
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
Matlab科研辅导帮
- 粉丝: 3w+
- 资源: 7820
最新资源
- Auins-vmware虚拟机安装教程
- lilishop 商城 java商城-c语言
- fastpip-anaconda安装
- shopTNT电商系统-前端(PC端 商家PC端 管理端)-C语言资源
- minotes-android studio下载
- workflow-C++资源
- LinkWeChat-Java资源
- Goldfish Scheme-Python资源
- lilishop 商城 电商前端-c语言
- swift-Swift资源
- Java_Android_天气预报系统-android studio下载
- StockAnalysisSystem-anaconda安装
- gebi1-redpill-vmware虚拟机安装教程
- jvs-机器人开发资源
- qbbang-pycharm安装教程
- Kotlin-Kotlin资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)