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
-
Replace NaNs with the number that appears to its left in the row.
3010 Solvers
-
1891 Solvers
-
Sum of first n positive integers
590 Solvers
-
613 Solvers
-
14374 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!