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