1 Star 0 Fork 0

tt56039/APFDesign

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
funAnaPN.m 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
baobaoluo 提交于 2024-03-24 11:36 . final
%--------------------------------------------------------------------------
% Edited by bbl
% Date: 2024-03-17(yyyy-mm-dd)
% PolyPhaseNetwork analysis
%--------------------------------------------------------------------------
function [ang, Suppression] = funAnaPN(R, C, RL, ft)
n = length(R);
N = length(ft);
L = [1/RL(1), 0, 0, 0;
0,1/RL(1), 0, 0;
0, 0, 1/RL(1), 0;
0, 0, 0, 1/RL(1);];
I = [ 1, 0, 0, 0;
0, 1, 0, 0;
0, 0, 1, 0;
0, 0, 0, 1;];
Vin = [ 1;
1;
-1;
-1;];
for ii=1:N
f = ft(ii);
A = MA(R(1),C(1),2*pi*f);
for m = 2:n
Ax = MA(R(m),C(m),2*pi*f);
A = A*Ax;
end
A11 = A(1:4,1:4);
A12 = A(1:4,5:8);
A21 = A(5:8,1:4);
A22 = A(5:8,5:8);
Vout = (I-A12/A22*L)\(A11-A12/A22*A21)*Vin;
Va(ii) = Vout(3)-Vout(1);
Vb(ii) = Vout(4)-Vout(2);
end
ang = angle(Va./Vb);
Suppression = 20*log10(abs(cot((ang-pi/2)/2)));
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tt56039/APFDesign.git
git@gitee.com:tt56039/APFDesign.git
tt56039
APFDesign
APFDesign
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385