www.gusucode.com > phased 案例源码 matlab代码程序 > phased/CrossedDipolePolarizationExample.m

    %% LHCP and RHCP Polarization Components
% This example plots the right-handed and left-handed circular polarization
% components of fields generated by a crossed-dipole antenna at 1.5 GHz.
% You can see how the circular polarization chnages from pure RHCP at
% 0° azimuth angle to pure LHCP at 180° azimuth angle, both at 0°
% elevation angle.
%%
% *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 |phased.CrossedDipoleAntennaElement| System object(TM).
fc = 1.5e9;
antenna = phased.CrossedDipoleAntennaElement('FrequencyRange',[1,2]*1e9);
%%
% Compute the left-handed and right-handed circular polarization components
% from the antenna response.
az = [-180:180];
el = zeros(size(az));
resp = antenna(fc,[az;el]);
cfv = pol2circpol([resp.H.';resp.V.']);
clhp = cfv(1,:);
crhp = cfv(2,:);
%%
% Plot both circular polarization components at 0° elevation.
polar(az*pi/180.0,abs(clhp))
hold on
polar(az*pi/180.0,abs(crhp))
title('LHCP and RHCP vs Azithmuth Angle')
legend('LHCP','RHCP')
hold off