www.gusucode.com > phased 案例源码 matlab代码程序 > phased/Plot3DResponseCosineAntennaElementExample.m
%% Plot 3-D Response of Cosine Antenna Element % This example shows how to construct an antenna with a cosine-squared % response in both azimuth and elevation. The operating frequency range of % the antenna is 1 to 10 GHz. Plot the 3-D antenna response at 5 GHz. sCos = phased.CosineAntennaElement(... 'FrequencyRange',[1 10]*1e9,'CosinePower',[2 2]); pattern(sCos,5e9,[-180:180],[-90:90],'CoordinateSystem',... 'Polar','Type','powerdb')