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
- VL: A matrix representing the vertex list, where each row corresponds to a point in 3D space (x, y, z).
- i: An optional parameter representing an angle list. If not provided, it defaults to a sequence from 1 to the number of rows in VL.
Algorithm Steps
- 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.
- Calculate the differences between consecutive elements in
i
and round them using rounddiv
with a divisor of 1e-5
.
- Identify changes in the rounded differences and store their indices in
a
.
- If there are multiple segments in
a
, recursively call VLplotmotion
for each segment and adjust the axis limits for each subplot.
- Plot the x, y, and z positions of the vertices in separate subplots using
PLplot
.
- Calculate the differences in position to determine the speed
DL
, round it using rounddiv
with a divisor of 1e-9
, and plot it.
- Calculate the differences in speed to determine the acceleration
AL
, round it using rounddiv
with a divisor of 1e-9
, and plot it.
- 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