# Draw a system of points

Saltar a: navegación, buscar
System of mass points

We show how to draw a system of points in 3D. The objective is to represent a rigid body as a system of $N$ mass particles in such a way that the relative position of the points is fixed. We start with the simplest example, the four corners in a square. We follow the steps:

1. We introduce a vector $3 \times N$ that contains in each column the three cartesian components of each point
2. We plot the points with plot3 command
1 x=[1 1 -1 -1;1 -1 -1 1;0 0 1 1];                         % coordinates of the points