I can't see ground information

40 views (last 30 days)
Byeongjo
Byeongjo on 20 Nov 2023
Commented: Byeongjo on 20 Nov 2023
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")

Answers (1)

Pratyush
Pratyush on 20 Nov 2023
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 Comment
Byeongjo
Byeongjo on 20 Nov 2023
Thanks to you, I was able to resolve the error. Appreciate your help!

Sign in to comment.

Categories

Find more on Propagation and Channel Models in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!