clear
clc
% 使用1GHZ的微带线,最高控制到3GHz
f=1;
fe=3;
we=2*pi*fe;
tau=pi/2/we;
ele_l=360*tau*f;
%使用6个级联微带线进行设计
k=6;
%在DC处无零点
q=0;
%初始化H的系数
h=[1 1 1 1 1 1 1];
disp(['此处使用在',num2str(f/1e9),'GHz下电长度为',num2str(ele_l),'°的微带线进行实现']);
%0-3GHz的点数
Nopt=57;
fr_opt=linspace(0,3,Nopt+1);
% 定义S21参数的模值
mag=[1,0.952631578947368,0.905263157894737,0.857894736842105,0.810526315789474,0.763157894736842,0.715789473684211...
,0.668421052631579,0.621052631578947,0.573684210526316,0.526315789473684,0.478947368421053,0.431578947368421...
,0.384210526315789,0.336842105263158,0.289473684210526,0.242105263157895,0.194736842105263,0.147368421052631...
,0.100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000...
,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000...
,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000...
,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000...
,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000...
,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000,0.0100000000000000...
,0.0100000000000000,0.0100000000000000,0.0100000000000000];
% 定义相位,此处只设计幅值,相位随意了
phase=linspace(0,0,Nopt+1);
% 画出目标电路的幅度
figure (1)
plot(fr_opt,mag)
xlabel('Frequency')
ylabel('MAG-S21')
title('要设计的微带线的目标S21参数')
% 运行优化算法
n1=length(h);
n=n1-1;
h(n+1)=0;
for i=1:n
x0(i)=h(i);
end
% Call optimization with no transformer
OPTIONS=optimset('MaxFunEvals',20000,'MaxIter',50000);
x=lsqnonlin('objective',x0,[],[],OPTIONS,fe,q,k,fr_opt,mag, phase);
h(n+1)=0;
for i=1:n
h(i)=x(i);
end
% 基于优化得到的h计算其他参数
[G,H,F,g]=SRFT_htoG(h,q,k);
tau=1/4/fe;
N=length(mag);
j=sqrt(-1);
% 将得到的解析形式画图
for i=1:N
teta=2*pi*tau*fr_opt(i);
omega=tan(teta);
lmbda=j*tan(teta);
fval=(-1)^q*(lmbda)^q*(1-lmbda^2)^(k/2);
freal=real(fval);
fimag=imag(fval);
gval=polyval(g,lmbda);
greal=real(gval);
gimag=imag(gval);
S21=fval/gval;
MS21(i)=abs(S21);
phase_f=atan(fimag/freal);
phase_g=atan(gimag/greal);
phase_S21(i)=phase_f-phase_g;
ph(i)=teta;
fr(i)=fr_opt(i);
end
figure(2)
plot(fr,MS21, fr_opt,mag)
xlabel('Frequency')
ylabel('MS21, modula')
title('Arbitraray amplitude approximation via SRFT')
%------------------------------------
% 综合得到所需的微带电路
[Z_imp]=UE_sentez(h,g)
没有合适的资源?快使用搜索试试~ 我知道了~
10、电路综合-基于简化实频的宽带匹配电路设计方法
共15个文件
m:14个
asv:1个
18 下载量 195 浏览量
2023-10-31
15:35:57
上传
评论 1
收藏 10KB ZIP 举报
温馨提示
10、电路综合-基于简化实频的宽带匹配电路设计方法 参考: https://blog.csdn.net/weixin_44584198/article/details/134138774?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22134138774%22%2C%22source%22%3A%22weixin_44584198%22%7D
资源推荐
资源详情
资源评论
收起资源包目录
ArbitraryGain.zip (15个子文件)
ArbitraryGain
lambda2q_UE2k.m 332B
UE_sentez.m 963B
paraconj.m 258B
objective.m 810B
vector_sum.m 430B
Z_Match.asv 3KB
SRFT_htoG.m 732B
poly_eventerms.m 325B
cascade.m 310B
objective_Z_2.m 811B
objective_Z.m 679B
myupdatefcn_smith1.m 950B
Z_Match.m 3KB
poly_oddterms.m 347B
ArbitraryGain.m 3KB
共 15 条
- 1
资源评论
怡步晓心l
- 粉丝: 1w+
- 资源: 111
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Pygame库实现新年烟花效果的Python代码
- 浪漫节日代码 - 爱心代码、圣诞树代码
- 睡眠健康与生活方式数据集,睡眠和生活习惯关联分析()
- 国际象棋检测10-YOLO(v5至v9)、COCO、CreateML、Paligemma数据集合集.rar
- 100个情侣头像,唯美手绘情侣头像
- 自动驾驶不同工况避障模型(perscan、simulink、carsim联仿),能够避开预设的(静态)障碍物
- 使用Python和Pygame实现圣诞节动画效果
- 数据分析-49-客户细分-K-Means聚类分析
- 车辆轨迹自适应预瞄跟踪控制和自适应p反馈联合控制,自适应预苗模型和基于模糊p控制均在simulink中搭建 个人觉得跟踪效果相比模糊pid效果好很多,轨迹跟踪过程,转角控制平滑自然,车速在36到72
- 企业可持续发展性数据集,ESG数据集,公司可持续发展性数据(可用于多种企业可持续性研究场景)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功