Return 1 if the input is sorted from highest to lowest, 0 if not.
Example:
1:7 -> 0 [7 5 2] -> 1
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers1626
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
52848 Solvers
-
Read a column of numbers and interpolate missing data
2350 Solvers
-
How to find the position of an element in a vector without using the find function
2814 Solvers
-
Getting the indices from a matrix
719 Solvers
-
Switch matrix to a column vector
374 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
umm... why is issorted not working? :<
Please correct the test case.
@Rahul Gulia, the test suite is indeed correct, read the question properly