MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
Problem 109. Check if sorted
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
1 player likes this solution
x = sort(rand(1,10^5));
y_correct = 1;
x = [1 5 4 3 8 7 3];
y_correct = 0;