Draw a grid/heatmap on siteviewer

3 visualizzazioni (ultimi 30 giorni)
Isma Khan
Isma Khan il 19 Gen 2022
Risposto: Midimistro il 13 Mar 2023
I'm trying to draw a 2D grid on a 3d plot. The 3D plot is the siteviewer("SceneModel",mapFileName). However, if a try to plot anything that is not an rf object (rays, propagationmodel) it opens a new figure, and does not draw anything on that. Is there a way to draw a plot on the siteviewer window?

Risposte (1)

Midimistro
Midimistro il 13 Mar 2023
In order to plot anything on siteviewer, you need to use the propagationData data type or similar object. This means you minimally need the coordinates and value to plot, stored as an array list of sorts; minimum is location coordinates. Some example code is below:
siteviewer("Position",[10 10 1910 1080]);%creates the siteviewer instance
plot(pd, "LegendTitle", legendTitle, "Colormap", flip(decimap), "ColorLimits",[-150 0]);%plots the data on siteviewer using 2D markers
Where pd is a propagationData data set that contains lat/long/value (or X/Y/Value), legendTitle is the title of the scale, decimap is the color scale in decimal format, and colorLimits are the scale limits of your propagationData. propagationData does not need to have RF values, but must include lat and long.
Its also possible to map a 2D result onto a 3D geotiff plot using axis and surf, but that's outside of this questions focus.

Categorie

Scopri di più su Propagation and Channel Models in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by