www.gusucode.com > phased 案例源码 matlab代码程序 > phased/PlotDirectivityofCosineAntennaExample.m
%% Plot Directivity of Cosine Antenna % This example shows how to construct a cosine-pattern antenna and plot % an elevation cut of its directivity. Assume the antenna works between % 1 and 2 GHz and its operating frequency is 1.5 GHz. Set the azimuth angle % cosine power to 2.5 and the elevation angle cosine power to 3.5. % Copyright 2015 The MathWorks, Inc. %% sCos = phased.CosineAntennaElement('FrequencyRange',... [1e9 2e9],'CosinePower',[2.5,3.5]); plotResponse(sCos,1.5e9,'RespCut','El','Unit','dbi'); %% % The directivity is maximum at 0 degrees elevation and attains a value of approximately % 12 dB.