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