Write a program using MATLAB software to calculate the total power Pagg radiated by a dipole antenna using integration, as given in formula (4).
Use the same radiation frequency, wavelength of radiation, k, I, Io, and observation point R as in Part A.
Modify the code from Part A to represent a function of angle θ that should be integrated.
Hint: Use MATLAB help to find out how to define a function using the @ function handle.
Calculate the integral for the total radiated power Pzad given in formula (4).
Hint: Use MATLAB's built-in function "integral". Integrate from θ to Φ.