Demo entry 6344403

Calculating weight of AMF

   

Submitted by anonymous on Jan 13, 2017 at 03:56
Language: Matlab. Code size: 820 Bytes.

function weight  = AMF(R, NumSA,SignAmpl, ChanPhaseCenterX, ChanPhaseCenterY, Gsm, lambda)

%% fixed Parameter 
%---- Beam Look Direction for 9 Beams
u_3dB = sind(2.92)/2;
v_3dB = sind(4.09)/2;
U_look9 = [-u_3dB, 0, u_3dB, -u_3dB,0, u_3dB, -u_3dB, 0, u_3dB ];
V_look9 = [v_3dB,v_3dB,v_3dB, 0, 0, 0, -v_3dB,-v_3dB,-v_3dB ];

%% Adaptive Beamforming (AMF)
%--- Constraint matrix

% T matrix 
T= diag(Gsm);

weight = zeros(NumSA, 9);
for Beam_index = 1:9
    u0 = U_look9(Beam_index);
    v0 = V_look9(Beam_index);

    %--- Look Direction Steering Vector
    s = (SignalVector2(u0,v0,NumSA,lambda,SignAmpl,ChanPhaseCenterX,ChanPhaseCenterY));  
    
    %--- AMF weight vector (weight = inv(R)*s/(sqrt(s'*inv(R)*s)))

    weight(:,Beam_index) = (inv(R)*T*s)/sqrt(s'*inv(R)*T*s);
    end
   
end

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).