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
-
7350 Solvers
-
1739 Solvers
-
Implement simple rotation cypher
1083 Solvers
-
Side of an equilateral triangle
6347 Solvers
-
493 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!