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
Back to basics 23 - Triangular matrix
634 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
Test if two numbers have the same digits
187 Solvers
Reverse the elements of an array
687 Solvers
07 - Common functions and indexing 2
316 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!