vecinterpolate

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 4.7, Creation date: 2019-07-03, Last change: 2025-09-14

returns a vector row interpolation by

Description

This function is helpful to created interpolation values for n DoF robot kinematics

See Also: SGTframeChain , SGTchain

Example Illustration

 missing image of vecinterpolate(VL,stp)

Syntax

IVL=vecinterpolate(VL,[stp])

Input Parameter

VL: list of row vectors
stp: step number for interpolation

Output Parameter

IVL: Interpolated vector list

Examples


vecinterpolate([NaN 1 2 3 ; 0 4 5 6; 30 40 50 60; nan 400 500 600],2)
vecinterpolate([0 0 0; 10 20 30],5)




Copyright 2019-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 algorithm performs interpolation on a list of row vectors, which is useful for creating interpolation values for n DoF robot kinematics.

Input Parameters

Output

Algorithm Steps

  1. Retrieve the step number stp from the input parameters. If not provided, default to 1.
  2. Determine the number of rows nr and columns nc in the input vector list VL.
  3. Initialize an empty matrix IVL with dimensions (nr*stp, nc) filled with NaN values to store the interpolated vectors.
  4. Set a counter k to 1 to track the position in the output matrix IVL.
  5. Loop through each pair of consecutive vectors in VL:
  6. After completing the loop, adjust k to remove any unused rows in IVL.
  7. Return the interpolated vector list IVL.
Algorithm explaination created using ChatGPT on 2025-08-18 23:58. (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