### Recent Question/Assignment

In this assignment you will develop and test a Matlab program for plotting antenna radiation patterns and antenna parameters calculation. You will be given 4 data files in .csv format that represent results for measured radiated power of an antenna versus azimuthal angle f and elevation angle ?.
• File Phi.csv contains a column of azimuthal angles f from 0-360 degrees.
• File P_phi.csv contains a column of measured radiated power in Watts in the direction of angle f with matching index, e.g. fifth row in P_phi.csv (i.e. P(5) value) corresponds to fifth row in Phi.csv (i.e. f(5) value).
• File Theta.csv contains a column of elevation angles ? from 0-360 degrees.
• File P_theta.csv contains a column of measured radiated powers corresponding to ? angles.
You are required to analyse the data by calculating antenna parameters and visually representing radiation patterns in the report.
Step 1: Import files
Copy all required files to the Matlab folder on the computer. Files need to be in the same Matlab folder as the program you run.
Write code to import the contents of the .csv files into Matlab. Import files for azimuthal angles f and corresponding powers first. (Alternatively use import button in Matlab for lower mark).
Step 2: Preliminary parameter calculations
i. Find the angle in direction of which radiation is maximum.
Step 3: Plot antenna radiation pattern
Plot radiation pattern for powers in dB versus azimuthal angle f. You can use “plot_dB.m” Matlab program that is attached in your assignment. Program works similar to inbuilt Matlab “polar plot” command and expects angle in radians and power in normalised ratio form (not dB).
polar_dB (angle, power, rangedb, increments, rays) Matlab program requires the following variables as input:

i. angle – replace with your actual variable name for angle in radians
ii. power – replace with your actual variable name for power in normalised ratio form
iii. rangedb – define minimum polar radius value mark on the axis (find min power in dB and round it a integer number, remove negative sign)
iv. increments – optional, tells how many circular grid lines do you want in the plot (hint: gridline through -3dB level is helpful, adjust increments and rangedb so that radius axis starts and zero and finishes at a suitable integer number)
v. rays – optional, tells how many grid lines for angles do you want in the plot
All input variables have to be calculated before using “polt_dB.m” command.
Write code to export image into a .jpg file. (Alternatively use save button in Matlab for lower mark).
Step 4: Parameter calculations
i. Write code to calculate P ratio in dB and calculate the beamwidth of the antenna in horizontal plane. If exact required power level match is not possible due to discrete data in .csv file, use the nearest available value in.csv file for calculations. Include formula and/or explanation for each calculated parameter. (Alternatively find required data from .csv files for lower mark). Compare the result to what you see on the graph to check for correctness.
ii. Write code and calculate front to back ratio of the antenna in dB in horizontal plane.
iii. Write code and calculate number of antenna side lobes, direction of maximum radiation and powers in dB radiated into direction of each side lobe in horizontal plane. (Alternatively find side lobe levels and directions from .csv files for lower mark).
Step 5: Repeat steps for elevation angles
Repeat steps 1 to 4 for vertical plane (versus elevation angle ?).
Step 6: Export result to a file
Export results of your calculations for each result into a .csv file.
Step 6: Discuss the results
Discuss antenna’s properties in the report based on what you have found from calculations and visualisation. Attach your Matlab code to your report as appendix.
General guidelines
The Assignment 1 report format should include the title page with assignment title, your name and student number and sections entitled: Introduction, Method, Results, Discussion and Conclusion. Subsections may be included as required. References should be in IEEE format.
Refer to Lectures 1 and 2 if necessary for the method and the formulas required for constructing radiation pattern. Use Matlab help and Matlab start.pdf if needed.
The report shall include two cases of radiation patterns: one in horizontal plane and one in vertical plane and calculated antenna parameters in each plane. Provide adequate explanation on how you executed the steps.
Marking Guide:
Section to be included in the report and demonstration Description of the section Marks
Introduction, Method, Results, Discussion and Conclusion Each section is present in the report and adequately covered. 5
Import and export Correctly coded import and export commands. 10
Plot of radiation pattern in horizontal plane Image of radiation pattern plotted in polar coordinates in dB scale. 10
Parameter calculations in horizontal plane Calculated beamwidth, front to back ratio, number and power level in dB of side lobes with formulas and/or explanation included. 10
Plot of radiation pattern in vertical plane Image of radiation pattern plotted in polar coordinates in dB scale. 10
Parameter calculations in vertical plane Calculated beamwidth, front to back ratio, number and power level in dB of side lobes with formulas and/or explanation included. 10
Discussion Discuss antenna properties based on calculated results and radiation patterns. 5
Reference style Follow IEEE reference style. 5
Poor writing Poor grammar, careless presentation, lack of clarity -10
Total 75
Marking Rubrics:
Mark HD
80%+ D
70%-79% CR
60%-69% P
50%-59% Fail
50%
Excellent Very Good Good Satisfactory Unsatisfactory
Analysis Logic is clear and easy to follow with strong arguments Consistency logical and convincing Mostly consistent and convincing Adequate cohesion and conviction Argument is confused and disjointed
Effort/Difficulties/
Challenges The presented solution demonstrated an extreme degree of difficulty that would require an expert to implement.
All results were obtained using Matlab code. The presented solution demonstrated a high degree of difficulty that would be an advance professional to implement. Most results were obtained using Matlab code. The presented solution demonstrated an average degree of difficulty that would be an average professional to implement.
Some of the results were obtained using Matlab code. The presented solution demonstrated a low degree of difficulty that would be easy to implement.
Minimal number of the results were obtained using Matlab code. The presented solution demonstrated a poor degree of difficulty that would be too easy to implement.