Reference: matToPointSet
matToPointSet(mat), where mat is a n×2 (or n×3) real matrix, returns the set of n points in R^2 (or R^3), in which the coordinates of point i are the elements of the ith row of mat.
Example: Given a matrix
⎛ 1 2 ⎞
⎜ 3 5 ⎟
A = ⎜ 2 5 ⎟,
⎜ 2 7 ⎟
⎝ 4 6 ⎠
matToPointSet(A) = {❨1, 2❩, ❨3, 5❩, ❨2, 5❩, ❨2, 7❩, ❨4, 6❩}.