VLplotmotion

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 2.1, Creation date: 2015-02-16, Last change: 2025-09-14

draws position, speed and acceleration of a VL

Example Illustration

 missing image of VLplotmotion(VL,i)

Syntax

VLplotmotion(VL,[i])

Input Parameter

VL: Vertex list
i: optional angle list




Copyright 2015-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, VLplotmotion, is designed to plot the position, speed, and acceleration of a vertex list (VL) over time. It is part of the SG-Library and was created by Tim Lueth in 2015.

Input Parameters

Algorithm Steps

  1. Initialize i to a column vector from 1 to the number of rows in VL. If a second argument is provided, set i to this value.
  2. Calculate the differences between consecutive elements in i and round them using rounddiv with a divisor of 1e-5.
  3. Identify changes in the rounded differences and store their indices in a.
  4. If there are multiple segments in a, recursively call VLplotmotion for each segment and adjust the axis limits for each subplot.
  5. Plot the x, y, and z positions of the vertices in separate subplots using PLplot.
  6. Calculate the differences in position to determine the speed DL, round it using rounddiv with a divisor of 1e-9, and plot it.
  7. Calculate the differences in speed to determine the acceleration AL, round it using rounddiv with a divisor of 1e-9, and plot it.
  8. Adjust the axis limits for all subplots to ensure they cover the full range of i.
Algorithm explaination created using ChatGPT on 2025-08-19 01:42. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21