plot
Display RF propagation data in Site Viewer
Syntax
描述
阴谋(
displays propagation data in the current Site Viewer. Each data point is displayed as a circular marker that is colored according to the corresponding value.PD
)
阴谋(___,
显示传播数据,其中包含名称值对参数指定的其他选项。Name,Value
)
例子
Compute Signal Strength Data in Urban Environment
启动曼哈顿的基地和构建文件的网站查看器。有关OSM文件的更多信息,请参阅[1]。
viewer = siteviewer("Basemap",“ streets_dark”,。。。"Buildings","manhattan.osm");
Show a transmitter site on a building.
tx = txsite(“纬度”,40.7107,。。。"Longitude",-74.0114,。。。“天线”,80);显示(TX)
Create receiver sites along nearby streets.
latitude = [linspace(40.7088, 40.71416, 50),。。。linspace(40.71416,40.715505,25),。。。linspace(40.715505, 40.7133, 25),。。。linspace(40.7133,40.7143,25)]';经度= [linspace(-74.0108,-74.00627,50),。。。linspace(-74.00627 ,-74.0092, 25),。。。linspace(-74.0092, -74.0110, 25),。。。linspace(-74.0110,-74.0132,25)]';rxs = rxsite(“纬度”,纬度,"Longitude", longitude);
计算每个接收器位置的信号强度。
signalStrength = sigstrength(rxs, tx)';
创建一个propagationData
对象保存计算的信号强度数据。
tbl = table(latitude, longitude, signalStrength); pd = propagationData(tbl);
Plot the signal strength data on a map as colored points.
legendtitle ="Signal"+ newline +"Strength"+ newline +“(D b)”;情节(PD,"LegendTitle", legendTitle,“ colormap”, parula);
Appendix
[1]The osm file is downloaded fromhttps://www.openstreetmap.org, which provides access to crowd-sourced map data all over the world. The data is licensed under the Open Data Commons Open Database License (ODbL),https://opendatacommons.org/licenses/odbl/。
Input Arguments
PD
—Propagation data
propagationData
object(default)
Propagation data, specified as apropagationData
目的。
Name-Value Arguments
将可选的参数对Name1=Value1,...,NameN=ValueN
, whereName
is the argument name and价值
是相应的值。名称值参数必须在其他参数之后出现,但是对的顺序并不重要。
Before R2021a, use commas to separate each name and value, and encloseName
in quotes.
例子:'Type','power'
DataVariableName
—数据变量绘制
PD。DataVariableName
(default) |character vector|string scalar
数据变量绘制, specified as the comma-separated pair consisting of'DataVariableName'
和character vector or a string scalar corresponding to a variable name in the data table used to create the propagation data container objectPD
。The default value is dynamic and corresponds to theDataVariableName
属性propagationData
目的。
Data Types:char
|string
类型
—绘图的价值类型
'custom'
(default) |'power'
|'efield'
|'sinr'
|'Pathloss'
绘图的价值类型,指定为逗号分隔对'Type'
和one of the values in the类型
柱子:
类型 | ColorLimits | LegendTitle |
---|---|---|
'custom' |
[最小(数据)最大(数据)] |
'' |
'power' |
[-120 -5] |
“电力(DBM)” |
'efield' |
[20 135] |
'E-field (dBuV/m)' |
'sinr' |
[-5 20] |
'SINR (dB)' |
'Pathloss' |
[45 160] |
'Path loss (dB)' |
的默认值Levels
is a linearly spaced vector bounded byColorLimits
。
Data Types:char
|string
Levels
—数据值级别绘制
数字向量
数据值级别绘制, specified as the comma-separated pair consisting of'Levels'
和数字向量。传播数据是根据Levels
。The data in each bin is color coded according to the corresponding level. The colors are selected using颜色
if specified, or else结肠
和ColorLimits
。该图中未包含低于最低级别的数据点。
的默认值Levels
is a linearly spaced vector bounded byColorLimits
。
Data Types:double
颜色
—数据点的颜色
M-by-3 array of RGB|array of strings|cell array of character vectors
颜色of the data points, specified as the comma-separated pair consisting of'颜色'
和nM-3 rgb(红色,蓝色,绿色)或字符串阵列或字符矢量阵列。将颜色分配给元素的值Levels
for coloring the corresponding points. Colors cannot be used with结肠
和ColorLimits
。
Data Types:double
|char
|string
结肠
—着色点的颜色图
“喷气式飞机(256)”
(default) |predefined colormap name|M-By-3 RGB三胞胎阵列
结肠for the coloring points, specified as the comma-separated pair consisting of'Colormap'
还有一个预定义的colormap名称或M-3定义的RGB(红色,蓝色,绿色)三胞胎的by-3阵列Mindividual colors.结肠
cannot be used with颜色
。
Data Types:double
|char
|string
ColorLimits
—颜色我imits for color map
两元素向量
菌落的颜色限制,指定为逗号分隔对'ColorLimits'
和两元素向量of the form [min max]. The color limits indicate the data level values that map to the first and last colors in the colormap.ColorLimits
cannot be used with颜色
。
Data Types:double
MarkerSize
—数据标记的大小
10
(default) |正数标量
地图上绘制的数据标记的大小,指定为逗号分隔对“标记”
和正数标量in pixels.
Data Types:double
showlegend
—在地图上显示彩色传奇
真的
(default) |false
在地图上显示彩色传奇, specified as the comma-separated pair consisting of'ShowLegend'
和真的
或者false
。
Data Types:logical
LegendTitle
—Title of color legend
character vector|string scalar
Title of color legend, specified as the comma-separated pair consisting of'LegendTitle'
和character vector or a string scalar.
Data Types:string
|char
地图
—地表数据
SiteViewer
object
地表数据, specified as the comma-separated pair consisting of'地图'
和SiteViewer
目的。1默认值是当前的站点查看器或新站点查看器,如果没有打开。
Data Types:char
|string
Version History
1边界和区域标签的一致性是数据供应商提供的功能的介绍,并不意味着Mathworks认可®。
开放示例
You have a modified version of this example. Do you want to open this example with your edits?
matlab命令
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择一个网站
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:。
您还可以从以下列表中选择一个网站:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
美洲
- AméricaLatina(Español)
- 加拿大(英语)
- 美国(英语)