I can't see ground information

I have wrritten the code that the example are explaining.
But as you see, the ground informations are not shown. There are only black spaces.
How can I solve this problem?
My code :
viewer1 = siteviewer("Basemap","openstreetmap","Building","canarywharf.osm");
tx = txsite("Name","Small cell transmitter", ...
"Latitude",51.50375, ...
"Longitude",-0.01843, ...
"AntennaHeight",10, ...
"TransmitterPower",5, ...
"TransmitterFrequency",28e9);
rtpm = propagationModel("raytracing", ...
"Method","sbr", ...
"MaxNumReflections",0, ...
"BuildingsMaterial","perfect-reflector", ...
"TerrainMaterial","perfect-reflector");
coverage(tx,rtpm, ...
"SignalStrengths",-120:-5, ...
"MaxRange",250, ...
"Resolution",3, ...
"Transparency",0.6)
rx = rxsite("Name","Small cell receiver", ...
"Latitude",51.50216, ...
"Longitude",-0.01769, ...
"AntennaHeight",1);
los(tx,rx)
rtpm.MaxNumReflections = 3;
clearMap(viewer1)
raytrace(tx,rx,rtpm)
ss = sigstrength(rx,tx,rtpm);
disp("Received power using perfect reflection: " + ss + " dBm")

답변 (1개)

Pratyush
Pratyush 2023년 11월 20일

1 개 추천

Hi Byeongjo,
I understand that the "siteviewer" function does not show the ground information.
To display the ground information in the MATLAB "siteviewer", you can adjust the Basemap settings to include terrain information.
Here's how you can modify the code to include terrain information:
viewer1 = siteviewer("Basemap","osm","Buildings","canarywharf.osm","Terrain","terrain");
Follow the following documentation link to know about "terrain" property in "siteviewer" and how to access basemap and terrain choices in "siteviewer".
Hope that helps.

댓글 수: 1

Byeongjo
Byeongjo 2023년 11월 20일
Thanks to you, I was able to resolve the error. Appreciate your help!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Propagation and Channel Models에 대해 자세히 알아보기

질문:

2023년 11월 20일

댓글:

2023년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by