www.gusucode.com > phased 案例源码 matlab代码程序 > phased/ShortdipoleAntennaAlignedAlongTheYAxisExample.m
%% Short-dipole Antenna Aligned Along the Y-Axis % Specify a short-dipole antenna with the dipole oriented along the % _y_-axis and operating at 250 MHz. Then, plot the 3-D responses for both the % horizontal and vertical polarizations. %% % *Note:* This example runs only in R2016b or later. If you are using an earlier % release, replace each call to the function with the equivalent |step| % syntax. For example, replace |myObject(x)| with |step(myObject,x)|. %% % Create the short-dipole antenna element System object(TM). antenna = phased.ShortDipoleAntennaElement(... 'FrequencyRange',[100e6,600e6],'AxisDirection','Y'); fc = 250.0e6; %% % Plot the horizontal polarization response. pattern(antenna,fc,-180:180,[-90:90],'CoordinateSystem','polar',... 'Type','powerdb','Polarization','H'); %% % Plot the vertical polarization response. pattern(antenna,fc,-180:180,[-90:90],'CoordinateSystem','polar',... 'Type','powerdb','Polarization','V'); %% % Plot the combined response. pattern(antenna,fc,-180:180,[-90:90],'CoordinateSystem','polar',... 'Type','powerdb','Polarization','C');