sa_fig4_29.m
来自「智能天线Matlab版源代码」· M 代码 · 共 39 行
M
39 行
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%% ****************************************************** %%%% * Smart Antennas for Wireless Applications w/ Matlab * %%%% ****************************************************** %%%% %%%% Chapter 4: Fig 4.29 %%%% %%%% Author: Frank Gross %%%% McGraw-Hill, 2005 %%%% Date: 9/12/2004 %%%% %%%% This code creates Fig 4.29, an Array Factor pattern for %%%% a N = 4 Butler Matrix, with d = lambda/2. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%------------------- Define Variables:--------------------%%% d - Element spacing %% N - Number of stages in Butler Matrix %% theta - angle (deg) %% AF - Array Factor for Butler Matrix %%%---------------------------------------------------------%%%%---------------------- Given Values ----------------------%%d = .5; N = 4;theta = -pi/2:.01:pi/2;%%------------ Create Array Factor for Butler Matrix ------------- %%for j = -(N - 1):2:N - 1 AF = sin(N*pi*d*sin(theta) - j*pi/2)./(N*pi*d*sin(theta) - j*pi/2); AF = abs(AF); polar(theta,abs(AF),'k') hold on view(-90,90)endtitle('\bfFig 4.29 - N = 4 Butler Matrix Array Factor, d = \lambda/2')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?