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);
0 个评论
回答(1 个)
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Propagation and Channel Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!