How to get beam-doppler plot?
이전 댓글 표시
Currently, I don't have access to the phased array toolbox, so I am manually trying to simulate an airborne radar that I want to use for DOA and velocity estimation. I am not sure how to compute the spatial freq vs doppler freq plot. I have attached my code below. Can someone suggest the next step, and also correct if I have implemented something incorrectly.
for ii=1:G
SOURCE_angles = doa(ii,:); %%% doa is arranged such that odd colms have azimuth angle and even colms have elevation angle
v = v_t(ii,:); %%%target velocity relative to the airborne radar platform
Ax = zeros(Mx, size(M_vec,2)*K);
Ay = zeros(My - 1, size(M_vec,2)*K);
idx = 1;
idy = 1;
for k = 1:2:SOURCE_K
Ax(:, idy:1:size(M_vec,2)*idx) = kron(exp(1i*2*pi*0.5*(0:Mx-1)'*cosd(SOURCE_angles(k))*sind(SOURCE_angles(k+1))),(exp(1i*2*pi*dist*(0:size(M_vec,2)-1)'*(2*v(idx)*fc)/(c*fpr)))');
Ay(:, idy:1:size(M_vec,2)*idx) = kron(exp(1i*2*pi*0.5*(1:My-1)'*sind(SOURCE_angles(k))*sind(SOURCE_angles(k+1))),(exp(1i*2*pi*dist*(0:size(M_vec,2)-1)'*(2*v(idx)*fc)/(c*fpr)))');
idx = idx + 1;
idy = idy + size(M_vec,2);
end
A = [Ax; Ay]; % Steering matrix of all sensors
% The Expected covariance matrix for a angle-pair
Ry_the = A*diag(ones(size(M_vec,2)*K,1))*A' + noise_power*eye(Mx+My-1); %dim: (Mx+My-1) x (Mx+My-1)
% % The Sampled covariance matrix for a angle-pair
S = (randn(size(M_vec,2)*K,p)+1j*randn(size(M_vec,2)*K,p))/sqrt(2); % Random source envelope signal (baseband signal)
% %S = tanh(nonlinear_factor * S);
% %S = sqrt(sVar)*randn(size(M_vec,2)*K, p).*exp(1i*(2*pi*fc*repmat((1:p)/fs, size(M_vec,2)*K, 1)));
X = A*S;
% %noiseCoeff = 1;
Eta = sqrt(noise_power)*(randn(Mx+My-1,p)+1j*randn(Mx+My-1,p))/sqrt(2); % the number of snapshots
% %Eta = sqrt(noiseCoeff)*randn(Mx + My - 1, p);
Y = X + Eta; %STO
Ry_sam = Y*Y'/p;
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Get Started with Phased Array System Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!