Problem 10. Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return false otherwise.
Examples:
Input x = [-3 0 7]
Output tf is true
Input x = [2 2]
Output tf is false
Solution Stats
Problem Comments
-
37 Comments
Show
34 older comments
nirmiti
on 5 Mar 2024
The code is to useful and helped me in learning new things
Ashish
on 5 Mar 2024
Great problem
Piyush
on 5 Mar 2024
great problem
Solution Comments
Show commentsProblem Recent Solvers21296
Suggested Problems
-
1565 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
2496 Solvers
-
1411 Solvers
-
568 Solvers
-
Solve a System of Linear Equations
12610 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!