1 Star 0 Fork 0

tt56039/APFDesign

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
TopSim.m 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
baobaoluo 提交于 2024-03-24 11:36 . final
%--------------------------------------------------------------------------
% Edited by bbl
% Date: 2024-03-23(yyyy-mm-dd)
% simplify eq
%--------------------------------------------------------------------------
syms R1 C1 RL R2 C2 R3 C3 w
I = [ 1, 0, 0, 0;
0, 1, 0, 0;
0, 0, 1, 0;
0, 0, 0, 1;];
% L = [1/RL, 0, 0, 0;
% 0,1/RL, 0, 0;
% 0, 0, 1/RL, 0;
% 0, 0, 0, 1/RL;];
L = [0, 0, 0, 0;
0,0, 0, 0;
0, 0, 0, 0;
0, 0, 0, 0;];
Vin = [ 1;
1;
-1;
-1;];
[A1] = MA(R1,C1,w);
[A2] = MA(R2,C2,w);
[A3] = MA(R3,C3,w);
A = A1*A2*A3;
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
Vout = A11*Vin-A12/A22*A21*Vin;
Va = Vout(3)-Vout(1);
Vb = Vout(4)-Vout(2);
sVa = simplify(Va);
sVb = simplify(Vb);
sVab = sVa/sVb;
ssVab = simplify(sVab)
pretty(ssVab)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tt56039/APFDesign.git
git@gitee.com:tt56039/APFDesign.git
tt56039
APFDesign
APFDesign
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385