www.gusucode.com > phased 案例源码 matlab代码程序 > phased/AddCursorsToPolarPatternPlotExample.m
%% Add Cursors to Multiple Polar Pattern Plots % Create a cosine antenna and plot the polar pattern of its directivity at % 75 MHz. Then create an isotropic antenna. Also calculate the directivity % of this antenna at 75 MHz. Add the directivity plot of the isotropic % antenna to the directivity plot of the cosine antenna. Then add cursors % at several points, cosineantenna = phased.CosineAntennaElement('FrequencyRange',[1.0e0 100.0e9],... 'CosinePower',[2,2]); p1 = pattern(cosineantenna,75.0e6,[-90:90],0,'Type','Directivity'); P = polarpattern([-90:90],p1); isoantenna = phased.IsotropicAntennaElement('FrequencyRange',... [1.0e0 100.0e9]); p2 = pattern(isoantenna,75.0e6,[-180:180],0,'Type','Directivity'); add(P,[-180:180],p2); %% % Add a cursor at approximately 30° to the cosine antenna pattern % (designated by index 1) and at 150° and 270° to the isotripic % polar pattern (designated by index 2). addCursor(P,[30.5 149.0 314.7],[1 2 1]);