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
Find a subset that divides the vector into equal halves
336 Solvers
354 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
301 Solvers
365 Solvers
1148 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!