Running example "Create Site Viewer" does not work in Matlab R2023b
Show older comments
Simply running the Matlab command:
openExample('spc_channel/DefaultSiteViewerMapDisplayExample')
should open a default site viewer map display, showing a globe. When I run it, it does open the window, however, it only shows a blank "star field" background:

I also get a warning: "Warning: Unable to read map tiles from URL 'http://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=1/{z}/{x}/{y}.png' of basemap 'BingAerial'. This basemap will be excluded from the globe viewer."
I can select other imagery sources in the Site Viewer window, even the "Dark Water" that should be built in, but the display doesn't change.
The example web page can be found here: https://www.mathworks.com/help/antenna/ref/siteviewer.html?searchHighlight=siteviewer&s_tid=srchtitle_support_results_1_siteviewer
The command is simply:
viewer = siteviewer;
Any suggestions?
1 Comment
Kevin Nichols
on 21 Nov 2023
Answers (2)
Star Strider
on 19 Nov 2023
0 votes
Apparently, in the interest of reducing the increasing storage demands of the more recent MATLAB releases, MathWorks has stopped automaticaly downloading the documentation. If you want to download it, click on ‘RESOURCES’ in the top toolstrip, then ‘Help’ → ‘Documentation’ or ‘Examples’. (I suspect that ‘Documentation’ will include ‘Examples’.) Then, follow the instructions. (I did this with R2023a, and it takes a while.)
If you want to use MATLAB Online, the example should work since all the examples should available be available already.
3 Comments
Kevin Nichols
on 19 Nov 2023
Edited: Kevin Nichols
on 19 Nov 2023
I don’t have the Antenna Toolbox (I don’t need it since I don’t design my own antennas any more) so I can’t run that to test it.
I can’t run it here, either:
openExample('spc_channel/DefaultSiteViewerMapDisplayExample')
.
There are only two options I can think of to do at this point, the first is to see if running these:
restoredefaultpath
rehash toolboxcache
from a script or your Command Window solves it, and if that doesn’t work, Contact Support. Include the URL of this thread in your message to MathWorks so you don’t have to repeat everything here.
.
Steven Lord
on 19 Nov 2023
I'm not 100% certain but I suspect the same server issue that Cris LaPierre noted in this Answers post may be causing this behavior.
Octavio Ordaz
on 20 Nov 2023
Hi, I'm facing the same issue trying to simply run:
viewer = siteviewer(Terrain="gmted2010",Basemap='colorterrain')
I'm getting no warnings but the same black background. I've tried downloading via Add-Ons the colorterrain but didn't solve the issue. Also, I've tried using MATLAB online but I have the same issue.
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!