Demo entry 6781501

main

   

Submitted by anonymous on Jan 04, 2019 at 09:21
Language: Matlab. Code size: 600 Bytes.

Rg = 50;
L1 = 55.5e-9;
C1 = 79e-12;
C2 = 4.72e-12;
L2 = 0.932e-9;
L3 = 55.5e-9;
C3 = 79e-12;
RL = 50;

w = 100000:100000:50000000000;   %角频率取值
logw = log10(w);

ZL1 = L1 .* w .* 1i;             %计算各元件阻抗
ZC1 = 1 ./ (1i .* w .* C1);
ZC2 = 1 ./ (1i .* w .* C2);
ZL2 = L2 .* w .* 1i;
ZL3 = L3 .* w .* 1i;
ZC3 = 1 ./ (1i .* w .* C3);

ZIN = ZL1 + ZC1 + 1 ./ (1 ./ ZC2 + 1 ./ ZL2 + 1 ./ (ZL3 + ZC3 + RL));
figure(1);
plot(logw, abs(ZIN));
% [zmag, zphase, zw] = bode(ZIN);
% plot(log10(zw), squeeze(zmag));
xlabel('角频率 w(rad/s) 对数坐标')
ylabel('输入阻抗 |ZIN|');
title('输入阻抗模值随频率变化曲线');

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).