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

📄 strip.m

📁 通信天线建模与MATLAB仿真分析原书中的代码
💻 M
字号:
%STRIP
%   Creates a dipole antenna (thin strip) in the xy-plane
%
%   The following parameters need to be specified:
%   Strip width (along the x-axis)          W
%   Strip length (along the y-axis)         L
%   Discretization parameter (width)        Nx
%   Discretization parameter (length)       Ny
%
%   Note: the equivalent wire radius is 0.25*W
%
%   For more general version of this script please 
%   see strip_.m of Appendix A.
%
%   Copyright 2002 AEMM. Revision 2002/04/12 
%   Chapter 4

clear all
warning off

W=0.04;     
L=6.28;     
Nx=1; 
Ny=90;

%Set vertexes of the strip
epsilon=1e-6; 
M=1;
for i=1:Nx+1
    for j=1:Ny+1
        X(M)=-W/2+(i-1)/Nx*W;
        Y(M)=-L/2+(j-1)/Ny*L-epsilon*X(M);
        M=M+1;
    end
end

%Use Delaunay triangulation
TRI = delaunay(X,Y,[]);
t=TRI';
t(4,:)=1;
p=[X; Y; zeros(1,length(X))];

%Save mesh file
save strip p t;
viewer strip

⌨️ 快捷键说明

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