ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

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❩}.