umm... why is issorted not working? :
if all(issorted(x)) == 0 & (diff(x)<0) % decreased matrix
i = 1;
else
i=0;
end
simple
It need to improve the test suite
some persons write code like numel=3
improve test suit pls elminate such type of mistakes
2505 Solvers
The Hitchhiker's Guide to MATLAB
2880 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
867 Solvers
Get the length of a given vector
3747 Solvers
How many trades represent all the profit?
526 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!