Draw a grid/heatmap on siteviewer

3 次查看(过去 30 天)
Isma Khan
Isma Khan 2022-1-19
回答: Midimistro 2023-3-13
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?

回答(1 个)

Midimistro
Midimistro 2023-3-13
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.

类别

Help CenterFile Exchange 中查找有关 Propagation and Channel Models 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by