www.gusucode.com > phased 案例源码 matlab代码程序 > phased/DirectivityCosineAntennaExample.m
%% Directivity of Cosine Antenna % Construct a cosine-pattern antenna. 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. Then, % plot an elevation cut of its directivity. % Copyright 2015 The MathWorks, Inc. %% sCos = phased.CosineAntennaElement('FrequencyRange',... [1e9 2e9],'CosinePower',[2.5,3.5]); fc = 1.5e9; pattern(sCos,fc,0,[-90:90],... 'Type','directivity',... 'CoordinateSystem','rectangular') %% % The directivity is maximum at 0 degrees elevation and attains a value of approximately % 12 dB.