主要内容

跟踪板

创建轨道绘图仪

描述

tPlotter= trackPlotter(tp)creates a track plotter for use with the theater plottp.

example

tPlotter= trackPlotter(tp,Name,Value)creates a track plotter with additional options specified by one or moreName,Value配对参数。

例子

全部收缩

创建剧院情节。用显示名称set to'Tracks'and with历史记录set to5.

tp = theaterPlot('xlim',[0,90],'YLim',[-35,35]); tPlotter = trackPlotter(tp,'DisplayName','Tracks','HistoryDepth',5);

用标有三个曲目更新曲目绘图仪'T1','T2', 和'T3'with start positions in units of meters all starting at (30, 5, 1) with corresponding velocities (in m/s) of (3, 0, 1), (3, 2, 2) and (3, -3, 5), respectively. Update the tracks with the velocities for ten iterations.

位置= [30,5,1;30、5、1;30、5、1];速度= [3,0,1;3、2、2;3,-3,5];标签= {'T1','T2','T3'};fori=1:10 plotTrack(tPlotter, positions, velocities, labels) positions = positions + velocities;end

该动画通过所有生成的图。

Input Arguments

全部收缩

Theater plot, specified as a戏剧图目的。

Name-Value Arguments

将可选的参数对Name1=Value1,...,NameN=ValueN, whereNameis the argument name and价值是相应的值。名称值参数必须在其他参数之后出现,但是对的顺序并不重要。

Before R2021a, use commas to separate each name and value, and encloseNamein quotes.

例子:“标记”,10

Plot name to display in legend, specified as the comma-separated pair consisting of'DisplayName'and a character vector or string scalar. If no name is specified, no entry is shown.

例子:“ displayName”,“雷达检测”

Number of previous track updates to display, specified as the comma-separated pair consisting of'HistoryDepth'一个非负整数小于或等于10,000。如果设置为0,则不会呈现以前的更新。

Connect tracks flag, specified as either'on'或者'离开'. When set to'on', tracks with the same label or track identifier between consecutive updates are connected with a line. This property can only be specified when creating the跟踪板. The default is'离开'.

To use thetrackIDs输入参数绘图,'ConnectHistory'一定是'on'. IftrackIDsis omitted when'ConnectHistory'is'on', then the track identifiers are derived from the labels input instead.

为轨道历史记录着色,指定为'on'或者'离开'. When set to'on',连续更新之间具有相同标签或轨道标识符的轨道与不同颜色的线连接。仅在创建该属性时才能指定跟踪板。默认值为'离开'.

ColorizedHistoryis applicable only whenConnectHistoryis'on'.

标记符号, specified as the comma-separated pair consisting of“标记”这些符号之一。

Marker 描述 Resulting Marker
'o' Circle

Sample of circle marker

'+' 加号

Sample of plus sign marker

'*' Asterisk

星号标记样品

'.' 观点

Sample of point marker

'x'

跨标记样本

'_' Horizontal line

Sample of horizontal line marker

'|' 垂线

Sample of vertical line marker

's' Square

平方标记样品

'd' Diamond

钻石线标记样品

'^' 向上的三角形

向上的三角标记样本

'v' Downward-pointing triangle

向下点三角形标记的样本

'>' Right-pointing triangle

right-po样本inting triangle marker

'<' Left-pointing triangle

Sample of left-pointing triangle marker

'p' 五角星

五角星标记样品

'h' Hexagram

六边形标记样品

'none' 没有标记 Not applicable

Size of marker, specified as the comma-separated pair consisting of“标记”以及积极的积分。

标记大纲颜色,指定为逗号分隔对“标记为彩色”and a character vector, a string scalar, an RGB triplet, or a hexadecimal color code.

标记大纲颜色,指定为逗号分隔对'MarkerFaceColor'和字符向量,字符串标量,RGB三重态,十六进制颜色代码或'none'. The default is'none'.

标签轨道的字体尺寸,指定为逗号分隔对'FontSize'以及代表字体点大小的正整数。

Gap between label and positional point it annotates, specified as the comma-separated pair consisting of'LabelOffset'和三元素行矢量。指定[xyz] offset in meters.

Scale factor for magnitude length of velocity vectors, specified as the comma-separated pair consisting of'VelocityScaling'和一个正标量。该图将幅度向量值作为VK, whereV是每秒米的速度的大小,并且Kis the value ofVelocityScaling.

标签to associate with the plotter, specified as the comma-separated pair consisting of'Tag'and a character vector or string scalar. The default value is'PlotterN', whereNis an integer that corresponds to theN戏剧图.

标签提供了一种识别绘图仪对象的方法,例如在搜索使用时findPlotter.

Version History

Introduced in R2018b