planar array FFT DOA
이전 댓글 표시
clc; clear all; close all;
f = 3e8;
c = 3e8;
lambda = c/f;
dx = 0.5*lambda;
N = 40;
theta = [0];
d = lambda / 2;
Ri = ones(1,length(theta));
beta = 2*pi/lambda;
%%
pos_ULA = (-(N-1)/2:(N-1)/2)*d;
phase_delay_ULA = beta*pos_ULA'*sind(theta);
v_ULA = exp(1j*beta*pos_ULA'*sind(theta));
v_ULA1 = sum(v_ULA,2);
v_ULA2 = abs(v_ULA1/max(v_ULA1));
%%
F_first = [v_ULA2];
v_zero= [F_first ;zeros(2^15-length(F_first),1)].';
v_fft = fft(v_zero);
v_fft = v_fft/max(v_fft);
v_fftshift = abs(fftshift(v_fft));
figure(2)
t = linspace(-pi,pi,length(v_fftshift));
plot(t,20*log10((v_fftshift)),'LineWidth',1.4);
hold on
ylim([-40 0])
xlim([-1*beta*dx,1*beta*dx])
grid on
In the linear array situation, when one theta was given as in the above code, the signal source could be FFTed to the device for this situation to indicate a beam pattern.
Similarly, I want to proceed with the same method in the planar array, but I want to show theta value on the x-axis and phi value on the y-axis. There is no way to do this planar array through FFT anywhere.
Non - Using Scan!!!!!!!!!!!!!!!!!!!!
I think I'm using FFT2 but I don't know what to do...
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

