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

3 次查看(过去 30 天)
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);

回答(1 个)

Shoaib iqbal
Shoaib iqbal 2022-11-4
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 个评论
Josyula Abhijeet Das
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, ...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Propagation and Channel Models 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by