mustriploss.m

来自「射频方面的资料」· M 代码 · 共 27 行

M
27
字号
% MUSTRIPLOSS  Calculate the attenuation of a microstrip line
% 
%    [alpha, alphaC, alphaD] = MUSTRIPLOSS (EpsR, EpsE, tandelta, sigma, Z0, W, f) 
%      EpsR is the relative dielectric constant
%      EpsE is the effective dielectric constant
%      tandelta is the loss tangent of the dielectric
%      sigma is the conductivity of the metal
%      Z0 is the characteristic impedance of the microstrip line
%      W is the microstrip width
%      f is the frequency of operation
%      

function [alpha, alphaC, alphaD] = MUSTRIPLOSS (EpsR, EpsE, tandelta, sigma, Z0, W, f) 

k0 = 2*pi*f/3.0E8;

if (EpsR ~= 1),
  alphaD = k0*EpsR*(EpsE - 1)*tandelta/2/sqrt(EpsE)/(EpsR - 1);
else
  % If EpsR = 1, above formula divides by zero, so simplify.
  alphaD = k0*tandelta/2; 
end;  

Mu0 =  1.2566e-006;
Rs = sqrt(pi*f*Mu0/sigma);
alphaC = Rs/Z0/W;
alpha = alphaC + alphaD;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?