필터 지우기
필터 지우기

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

조회 수: 7 (최근 30일)
Josyula Abhijeet Das
Josyula Abhijeet Das 2022년 11월 1일
댓글: Josyula Abhijeet Das 2022년 11월 4일
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
Josyula Abhijeet Das 2022년 11월 4일
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에서 Antennas, Microphones, and Sonar Transducers에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by