How to find a value that fits algorithm?
显示 更早的评论
Hi all,
I'm trying to create a program to find a specific data value. I have a list of a bunch of numbers, and I want to find the first one after which there are four increasing numbers, then, in the next five numbers, no two decreases consecutively. Example: 1 2 3 4 5 6 5 6 7 would return 1. Mostly, my problem is handling the indices on this (getting it to shift one number down every time), and the different loops. Any help appreciated!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!