Guest User

Untitled

a guest
Feb 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. x= DataV'; %Data collected by the ULA (31 Spatial samples-31Antennas), 501 time samples
  2. N = size(x,1); % Number of antennas
  3. M = size(x,2); % Number of samples in fast-time dimension
  4. % window dimension for the smoothing dim[m1xm2]
  5. m1 = 25;
  6. m2 = 300;
  7. p1 = N-m1+1; %positions in the spatial dimension
  8. p2 = M-m2+1; %positions in the time dimension
  9. N_submat = p1*p2; %number of all the possible scan
  10. M_tot = m1*m2;
  11. ind_tot=1;
  12. for p1_ind = 1:p1
  13. for p2_ind = 1:p2
  14. x_win_new(:,ind_tot) = reshape (x(p1_ind:m1+(p1_ind-1),p2_ind:m2+(p2_ind-1)),[1,M_tot])';
  15. ind_tot=ind_tot+1;
  16. end
  17. end
  18. X_win_cor = x_win_new*x_win_new';
  19. X_win_cor_conj = conj(X_win_cor);
  20. J= fliplr(eye(M_tot)); %transition matrix
  21. %data smoothed covariance matrix (forward+backward)
  22. C=(1/2*N_submat)*(X_win_cor + J*X_win_cor_conj*J);
  23.  
  24. x x x . . x x x . . . . . . . .
  25. x x x . . x x x x x x . . x x x
  26. x x x . . x x x x x x . . x x x
  27. . . . . . . . . x x x . . x x x
Add Comment
Please, Sign In to add comment