singlestubresponse.m
来自「用matlab中的m文件和Simulik实现rf的经典例子!」· M 代码 · 共 27 行
M
27 行
% SINGLESTUBRESPONSE Computes the frequency response of a single-stub match
%
% [GammaIn] = SINGLESTUBRESPONSE(Z0, Zl, D, L, f, f0, STUBTYPE)
% STUBTYPE is either 'short' or 'open'
% D and L are the distance from the load and the length, in terms
% of wavelength at the normal frequency f0
% Zl is a string holding an expression for Zl in terms of f
%
function [GammaIn] = singlestubresponse (Z0, Zl, D, L, f, f0, STUBTYPE);
ZlF = eval(Zl);
DF = D*f/f0;
LF = L*f/f0;
Zd = Z0*(ZlF+j*Z0*tan(2*pi*DF))./(Z0+j*ZlF.*tan(2*pi*DF));
switch lower(STUBTYPE)
case 'short', Zs = Z0.*j.*tan(2*pi*LF);
case 'open', Zs = Z0./j./tan(2*pi*LF);
otherwise, error('Bad stub type');
end;
Zml = Zd.*Zs./(Zd + Zs);
GammaIn = (Z0 - Zml)./(Z0 + Zml);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?