clc;
clear all;
close all;

phi_s = -20;                  % %Gewuenschter Schwenkwinkel von -90° bis +90°
patches = 5                   %Anzahl der Patches

%%
f       =   2.45e9;                     %Mittenfrequenz 
c0      =   physconst('lightspeed');  
lambda  =   c0/f;
dx      =   0.045;                      %Abstand der Patches
x = degtorad(phi_s);  

%%
delta1 = (360*dx/lambda)*sin(x);
for i = 1: 1: patches+1;
x = delta1.*i;
disp(['Phase Patch phi_',num2str(i),' = ',num2str(x),'°'])
end
