Functions#

functions.cone(theta, d, h)#

theta = 45;

functions.vectarrow(p0, p1)#

Arrowline 3-D vector plot. vectarrow(p0,p1) plots a line vector with arrow pointing from point p0 to point p1. The function can plot both 2D and 3D vector with arrow depending on the dimension of the input

Example:

3D vector p0 = [1 2 3]; % Coordinate of the first point p0 p1 = [4 5 6]; % Coordinate of the second point p1 vectarrow(p0,p1)

2D vector p0 = [1 2]; % Coordinate of the first point p0 p1 = [4 5]; % Coordinate of the second point p1 vectarrow(p0,p1)

See also Vectline

functions.gfx_springelement(r1, r2, l0, radius, numwindings)#

Feder Darstellung

FederDarstellung(r1,r2,l0)

Feder Darstellung zwischen 2 Punkte im Raum. (r1 und r2) Hauptproblematik: Manchmal ist die Feder “gesprungen”, bzw. hat sich um

eine Halbe Umdrehung in Richtungsvektor gewendet.

Eingabeparameter:

r1 : Koordinaten von Punkt 1 | Vektor [x,y,z] r2 : Koordinaten vom Punkt 2 | Vektor [x,y,z] l0 : Anfangslänge | positiver Skalar l0

Christian Becker, Jonathan Schulte Getestet mit MATLAB R2012b 20.11.2012