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

    %% Loss Due to Receiver Axes Rotation
% Start with identical transmitter and receiver polarizations. Put the
% receiver at a position 100 meters along the _y_-axis. The transmitter is
% at the origin (default) and both local coordinate axes coincide with the
% global coordinate system (default). Compute the loss, and then rotate the
% receiver 30° around the _y_-axis. This rotation changes the azimuth
% and elevation of the transmitter with respect to the receiver and,
% therefore, the direction of polarization.
fv_tr = [1;0];
fv_rcv = [1;0];
pos_rcv = [0;100;0];
ax_rcv = azelaxes(0,0);
rho(1) = polloss(fv_tr,fv_rcv,pos_rcv,ax_rcv);
ax_rcv = roty(30)*ax_rcv;
rho(2) = polloss(fv_tr,fv_rcv,pos_rcv,ax_rcv)
%%
% The receiver polarization vector remains unchanged. However, rotating the
% local coordinate system changes the direction of the field of the
% receiving antenna polarization with respect to global coordinates. This
% change results in a 1.2 dB loss.