This solution is outdated. To rescore this solution, sign in.
-
3 Comments
joh4n
on 20 May 2014
Can anybody explain me, why this solution is smaler than the version where x = diff(x); is saved befor?
I mean:
x = diff(x);
tf = all(sign(x) > 0) || isempty(x);
Douglas Brown
on 9 Feb 2015
all(diff(x)>0)
Sid
on 19 Sep 2015
you can reduce your score by 6 points by removing the logic after ||.its taken care by 'all'
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!