www.gusucode.com > phased 案例源码 matlab代码程序 > phased/PlotShortDipoleAntennaElementDirectivityExample.m
%% Plot Short-Dipole Antenna Element Directivity % This example shows how to construct a short-dipole antenna element with its dipole axis % pointing along the y-axis and how to plot the directivity. % The antenna operating frequency spans the range 100 to 900 MHz. %% % To construct a y-directed short-dipole antenna, set the |'AxisDirection'| % value to |'Y'|. % Copyright 2015 The MathWorks, Inc. sSD = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[100 900]*1e6,'AxisDirection','Y'); %% % Plot the antenna's directivity at 500 MHz as an elevation cut % at a fixed azimuth angle. plotResponse(sSD,500e6,'Format','Line',... 'RespCut','El','Unit','dbi');