Main Content

updateWorldPoints

Update world points in world point set

Description

example

wpSet= updateWorldPoints(wpSet,pointIndices,worldPoints)updates the locations of the world points at the specified indicespointIndicesof the world point setwpSet.

Examples

collapse all

Generate 3-D world points.

worldPoints = rand(100,3);

Create aworldpointsetobject.

wpSet = worldpointset;

Add the world points to the world point set.

wpSet = addWorldPoints(wpSet,worldPoints);

Update the first 50 world points with new locations.

pointIndices = 1:50; newWorldPoints = worldPoints(pointIndices,:) + [0 0 5]; wpSet = updateWorldPoints(wpSet,pointIndices,newWorldPoints);

Input Arguments

collapse all

World point set, specified as aworldpointsetobject.

World point indices, specified as anM-element column vector of integers.Mis the number of world points to update in theworldpointsetobject.

World points coordinates, specified as anM3矩阵in the form [xyz].

Output Arguments

collapse all

World point set, returned as aworldpointsetobject.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

介绍了R2020b

See Also

Objects

Functions