필터 지우기
필터 지우기

Help in adding a Phase Shift

조회 수: 4 (최근 30일)
Hajji Alhajji
Hajji Alhajji 2020년 12월 30일
댓글: Harout Katerjian 2021년 10월 3일
Dear all,
I hope this finds you well.
I have the following code which is supposed to be an example of phased array antennas, but I am struggling to add a PHASE SHIFT of 10 degrees between each antenna.
Would anyone be kind in guiding me on how to introduce a phase shift to this code please?
Thank you.
clc; clear;
c = 3*10^8; % Speed of light
f = 60*10^9; % Frequency of operation
lambda = c/f; % Wavelength
d = 0.5*lambda;
pow = 2*pi/lambda;
num_elements = 4; % Number of elements
j = sqrt(-1);
k = 1;
ang = 0:5:360;
ang_n = max(size(ang));
A = 1; % Omni-pattern
for i = 1 : ang_n
y = 0;
for nn = 0 : num_elements - 1
y = y + A*exp(-j*pow*cos(ang(i)*pi/180)*d*nn);
end;
Amp(k) = abs(y);
k = k + 1;
end;
plot(ang,Amp/max(Amp))
  댓글 수: 1
Harout Katerjian
Harout Katerjian 2021년 10월 3일
did you find any solution for your problem, because i want also to implement a phased array beamforming with phase shift for each element antenna to give me the specific direction of the beamforing.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Antennas, Microphones, and Sonar Transducers에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by