Filter löschen
Filter löschen

How do i change the antenna type in this matlab code?

7 Ansichten (letzte 30 Tage)
Josyula Abhijeet Das
Josyula Abhijeet Das am 1 Nov. 2022
I am trying to change the antenna type used in this code. I tried to debug but i am not able to understand what syntax i must use to repalce the isotropic antenna with another. I am posting the code:
clear; clc;
viewer = siteviewer("Buildings","UoS.osm");
Latitudes = [51.2436, 51.2360];
Longitudes = [-0.6160, -0.6056];
BaseStation = txsite("Name","BS",...
"Latitude", Latitudes, ...
"Longitude",Longitudes, ...
"AntennaHeight",10, ...
"TransmitterPower",30, ...
"TransmitterFrequency",3.5e9);
show(BaseStation);
pm = propagationModel("raytracing","MaxNumReflections",10);
coverage(BaseStation,pm, "SignalStrengths",-120:-5, ...
"MaxRange",200);

Antworten (1)

Shoaib iqbal
Shoaib iqbal am 4 Nov. 2022
Hi Josyula,
I understand that you are trying to change the Antenna type from isotropic.
You have used ‘txsite’ to create radio frequency transmitter site. If you don’t specify antenna in the ‘txsite’ function, the default is isotropic antenna. You can check this by running the following script
BaseStation.Antenna
To change the type of Antennas to dipole, the following script can be used
Latitudes = [51.2436, 51.2360];
Longitudes = [-0.6160, -0.6056];
BaseStation = txsite("Name","BS",...
"Antenna",dipole,...
"Latitude", Latitudes, ...
"Longitude",Longitudes, ...
"AntennaHeight",10, ...
"TransmitterPower",30, ...
"TransmitterFrequency",3.5e9);
For more information, refer to the doc
Hope this solves your query.
  1 Kommentar
Josyula Abhijeet Das
Josyula Abhijeet Das am 4 Nov. 2022
Thankyou for suggesting but I have already tried that. If i change the antenna type to dipole i get the following errors.
Out of memory.
Error in em.EmStructures/emsolver
Error in em.EmStructures/momsolver
Error in em.EmStructures/analyze
Error in em.FieldAnalysisWithFeed/EHfields (line 193)
analyze(obj,parserObj.Results.frequency, parserObj.Results.ElementNumber,...
Error in comm.internal.calcJonesVector (line 85)
e = EHfields(antenna, fc, [x; y; z], "CoordinateSystem","Spherical");
Error in comm.internal.raytrace>calcPathLossSingleSite (line 434)
[txJV, isTxPol] = comm.internal.calcJonesVector( ...
Error in comm.internal.raytrace>findRaysSBR (line 395)
rays{rxIdx} = calcPathLossSingleSite( ...
Error in comm.internal.raytrace (line 182)
rays(txIdx, :) = findRaysSBR(env, thisMtl, txs(txIdx), rxs, cfg, ...
Error in txsite/raytrace (line 371)
rays = comm.internal.raytrace(raytraceArgs{:});
Error in rxsite/sigstrength (line 201)
rays = raytrace(txs, rxs, pm, "Map", map);
Error in txsite/coverage (line 446)
data = sigstrength(rxs, txs, pm, ...
Error in trail (line 33)
coverage(BaseStation1,pm, "SignalStrengths",-120:-5, ...

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Antennas, Microphones, and Sonar Transducers finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by