Diferencia entre revisiones de «Draw a system of points»
De MateWiki
| (No se muestran 11 ediciones intermedias del mismo usuario) | |||
| Línea 1: | Línea 1: | ||
| − | [[Archivo:sist_masas.jpg| | + | [[Archivo:sist_masas.jpg|200px|thumb|right|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 <math> N </math> 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: | We show how to draw a system of points in 3D. The objective is to represent a rigid body as a system of <math> N </math> 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: | ||
| Línea 31: | Línea 31: | ||
[[Categoría:Teoría de Campos]] | [[Categoría:Teoría de Campos]] | ||
[[Categoría:TC14/15]] | [[Categoría:TC14/15]] | ||
| + | [[Categoría:TC15/16]] | ||
| + | [[Categoría:TC16/17]] | ||
| + | [[Categoría:TC17/18]] | ||
| + | [[Categoría:TC18/19]] | ||
| + | [[Categoría:TC19/20]] | ||
| + | [[Categoría:TC20/21]] | ||
| + | [[Categoría:TC21/22]] | ||
| + | [[Categoría:TC22/23]] | ||
| + | [[Categoría:Informática]] | ||
Revisión actual del 19:29 16 nov 2022
We show how to draw a system of points in 3D. The objective is to represent a rigid body as a system of [math] N [/math] 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:
- We introduce a vector [math]3 \times N [/math] that contains in each column the three cartesian components of each point
- We plot the points with plot3 command
- We adjunst the axis.
1 MATLAB code
x=[1 1 -1 -1;1 -1 -1 1;0 0 1 1]; % coordinates of the points
figure(1)
plot3(x(1,:),x(2,:),x(3,:),'o-','MarkerFaceColor','b') % Draw the points
axis([-2,2,-2,2,-2,2]) % select region for drawing
2 To go further
Mesh of a parametrized 2-D solid
Visualization of a scalar field in a solid