Question: give me another ans. Write a Matlab code that ask the user to input the following data : 1. Number of elements within linear array

Write a Matlab code that ask the user to input the following data : 1. Number of elements within linear array (N). 2. Space (d) between the array elements. 3. Interelement phase shift . The code should be able to : a) Plot the array factor AF(V) b) Plot the polar form of the antenna radiation pattern. Run your code and show the resulted graphs for the following 3 cases : 1) N=6, d=0.52, B = 0 2) N = 6, d = 0.52, B = 120 3) N=6, d=0.252, B = 120 %array factor calculation for n=0:N-1 ArrayFactor(complete_angle) = ArrayFactor (complete_angle) + A_initial'exp(i complex*n*2*plde (cos(degrad(complete_angle))- cos(Betapi/180))); end ArrayFactor(complete_angle) = abs(ArrayFactor(complete_angle)); % We find the absolute value of Array Factor deduced above. end polar (deg2rad, ArrayFactor): % Finally we can plot in the desired polar format. % We can see the following screenshots for the implementation process. We can also see the results and the plots. % Here we can see that we can enter different combinations of N, d and Beta to get different results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
