ismonotonously

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 5.1, Creation date: 2021-04-14, Last change: 2025-09-15

returns wether a sequence in monotonously increasing or decreasing



See Also: mod1circsequ

Example Illustration

 missing image of ismonotonously(x,circ)

Syntax

[mon,fd,k]=ismonotonously(x,[circ])

Input Parameter

x: sequence [n x 1] or [1 x n]
circ: if true; x is a circular sequence with one jump; default is false

Output Parameter

mon: 1= icreasing -1 => decreasing 0 == not monotonously
fd: indices of the faulty values
k: -1 = mainly decreasing, +1 = mainly increasing

Examples


ismonotonously(circshift([1:10 10 4 10 5 10],8),true)




Copyright 2021-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

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