Syntax
v=risemonotonously(v,[m])
Input Parameter
v : | | angle vector |
m : | | offset to jump; default is 2*pi |
Output Parameter
v : | | angle vector with values outside the interval 2*pi |
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 function, risemonotonously
, modifies an angle vector to ensure a monotonous rise by adjusting jumps of 2À. It is part of the SolidGeometry library.
Input Parameters
- v: An angle vector that needs to be adjusted.
- m (optional): The offset for jumps, defaulting to 2À if not provided.
Output
- v: The modified angle vector with values adjusted to ensure a monotonous rise.
Algorithm Steps
- Retrieve the offset
m
using getfuncparams
, defaulting to 2À if not specified.
- Initialize
vo
as a copy of v
and set a factor f
to 0.85.
- Determine the number of elements
n
in the vector v
.
- Iterate over the vector
v
starting from the second element:
- If the current element plus
m*f
is less than or equal to the previous element, increment the current and subsequent elements by m
until the condition is false.
- If the current element minus
m*f
is greater than or equal to the previous element, decrement the current and subsequent elements by m
until the condition is false.
- If no output is requested, plot the original and modified vectors using
SGfigure
and VLplot
.
Algorithm explaination created using ChatGPT on 2025-08-19 00:48. (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