⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qn_contours.m

📁 射频电路设计:理论与应用:theory and applications 全部源代码
💻 M
字号:
function Qn_contours(Qn, figure_number)
% Usage: Qn_contours(Qn, figure_number)
%
% Purpose: plots constant nodal quality factor 
%          contours in the Smith Chart
% 
% Input parameters: 
%          Qn - set of nodal quality factors for which
%               contours will be plotted
%          figure_number - optional parameter specifying
%               the reference to the figure containing Smith 
%               Chart. If this parameter is not specified then
%               currently active figure will be used
%
if nargin>1
   figure(figure_number);
end;
hold on;
N=length(Qn);
M=50; % the number of steps
for n=1:N
   r=sqrt(1+1/Qn(n)^2);
   y=1/Qn(n);
   alpha=atan(Qn(n));
   a=(-M:M)/M*alpha;
   plot(r*sin(a),-y+r*cos(a));
   plot(r*sin(a),y-r*cos(a));
end;	

⌨️ 快捷键说明

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