Help Center
Delete view from map
Since R2021a
sMapOut = deleteView(sMapIn,viewIds)
sMapOut = deleteView(sMapIn,viewIds) deletes the specified views viewIds, along with their corresponding features and segments.
sMapOut
sMapIn
viewIds
example
collapse all
Load a map of segments and features from a MAT file into the workspace.
data = load('segmatchMapFullParkingLot.mat'); sMap = data.segmatchMapFullParkingLot;
Visualize the map.
figure show(sMap) title('Map Before Deleting Views')
Delete the first 50 views from the map.
viewIds = 1:50; sMap = deleteView(sMap,viewIds);
Visualize the map after deleting the views.
figure show(sMap) title('Map After Deleting the First 50 Views')
pcmapsegmatch
Original map of segments and features, specified as a pcmapsegmatch object.
View identifiers, specified as an M-element vector. M is the number of views to delete. Each view identifier is unique to a specific view.
Updated map of segments and features, returned as a pcmapsegmatch object.
Introduced in R2021a
deleteSegments
addView
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.
Select a Web Site
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: .
You can also select a web site from the following list
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.
Americas
Europe
Asia Pacific
Contact your local office