Main Content

addWorldPoints

Add world points to world point set

Since R2020b

Description

example

wpSet = addWorldPoints(wpSet,worldPoints) adds world points to the world points set wpSet.

[wpSet,newPointIndices] = addWorldPoints(wpSet,worldPoints) additionally returns the indices in the world point set of the added world points.

Examples

collapse all

Generate 3-D world points.

worldPoints = rand(100,3);

Create a worldpointset object.

wpSet = worldpointset

Add the world points to the world point set.

wpSet = addWorldPoints(wpSet,worldPoints)

Input Arguments

collapse all

World point set, specified as a worldpointset object.

World points coordinates, specified as an M-by-3 matrix in the form [x y z].

Output Arguments

collapse all

World point set, returned as a worldpointset object.

Added world point indices, returned as an M-element column vector of integers. M is the number of world points added to the world point set.

Extended Capabilities

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

Version History

Introduced in R2020b