Reputation: 11
I am working on an antenna array for a university project. The antenna is designed for a centre frequency of 2.44175 GHz, and should span the Wi-Fi spectrum from 2.4 GHz to 2.4835 GHz. As a part of this project I have gotten the antenna tested in a MVG SG24 for a sweep of frequencies from 2.4 GHz to 2.5 GHz, with 10 MHz increments. The resulting data has then been placed in a CSV file that is being used as a source in MatLab.
When calling the patternCustom function in MatLab, the magnitude of the signal, theta angle and phi angle are being used to create a 3-dimensional radiation pattern, with a colour graph denoting signal reflection. I am however just getting an empty 3-dimensional plot, without any data bar the colour graph. I don't know if anyone here has experienced anything similar, but any help is greatly appreciated.
I have attached an image of the expected result and my result. Alongside this I have attached the CSV file I am using as a source for the program, and the code I am running.
I have tried to use MatLab's own guide on how to implement external antenna data, and would expect to get a 3-dimension radiation pattern. I am however just getting an empty plot without any data.
File I am using as a source for the data in MatLab.
Code I am running:
opts = detectImportOptions("Antenna Array Spherical data_Polar H_Polar V_Polar Θ_Polar Ф_E Total.csv");
opts.DataLines = 3;
opts.VariableNamesLine = 2;
patchData = readmatrix("Antenna Array Spherical data_Polar H_Polar V_Polar Θ_Polar Ф_E Total.csv",opts)
realTheta= patchData(:,8)
realPhi = patchData(:,10)
magnitudeE = patchData(:,12)
patternCustom(magnitudeE,realTheta,realPhi)
Image of expected result, from MatLab's own article on the patternCustom function.
Image of the plot I am getting.
Upvotes: 1
Views: 235
Reputation: 20130
ok, got access to the antenna package
First, I think your angular units are wrong, looks like radians and needed degrees
Second, your theta,phi grid is highly irregular
This is how theta,phi plot looks like for antenna example from Matlab
nice regular sweep of the 180 degrees in both theta and phi
And this is how your grid looks like converted to degrees, doesn't look right
Upvotes: 0