This solution is outdated. To rescore this solution, sign in.
-
3 Comments
Adrian Dronca
on 11 Mar 2013
so I did it in 1 single line but my size is too big :((
David Melton
on 12 Jul 2013
Here's my one-liner (similar to yours):
tf = ~sum(x(2:end) - x(1:end-1) <= 0)
Chris Liu
on 5 Nov 2020
you did good job
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!