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!