Main Content


Visualize the point cloud segments in the map



show(sMap) displays the point cloud segments in the map.

show(sMap,spatialExtent) displays point cloud segments within the spatial map or submap specified by spatialExtent.

show(___,Name,Value) specifies options using one or more name-value arguments in addition to any combination of input arguments in previous syntaxes. For example, 'MarkerSize',6 sets the marker size to 6 points.

ax = show(___) returns the axes used to plot the point cloud segments specified with previous syntaxes.


collapse all

Load a map of segments and features from a MAT file.

data = load('segmatchMapFullParkingLot.mat');
sMap = data.segmatchMapFullParkingLot;

Select a submap within the map.

center = [0 30 0];
sz = [40 25 8];
sMap = selectSubmap(sMap,center,sz);

Visualize the full map.

title('Full Map')

Highlight the selected submap on the full map.

pos = [center sz zeros(1,3)];

Figure contains an axes object. The axes object with title Full Map contains an object of type scatter.

Visualize the selected submap.

title('Selected Submap')

Figure contains an axes object. The axes object with title Selected Submap contains an object of type scatter.

Input Arguments

collapse all

Map of segments and features, specified as a pcmapsegmatch object.

Spatial extent, specified as 'map' or 'submap'. When you specify 'submap', only points within the current submap are displayed.

Name-Value Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'MarkerSize',6 sets the marker size to 6 points.

Diameter of marker, specified as a positive scalar. This value specifies the approximate diameter of the point marker. Units are in points. A marker size larger than six can reduce rendering performance.

Axes on which to display the visualization, specified as an Axes object. To create an Axes object, use the axes function. To display the visualization in a new figure, leave 'Parent' unspecified.

Output Arguments

collapse all

Plot axes, returned as an axes graphics object.

See Also



Introduced in R2021a