Nice one :)
Very well thought problem. Took me a few minutes to see why the "simplest" solution was incorrect. Well posed problem.
this is cheating, this is just calling the assert program, not solving the problem. Moderators should delete such solutions.
why is this wrong???
It works in matlab installed in my pc,I dont konw the exact reason why the script encounters a long run time error while compiling here
Well thought!!
900 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
Arrange vector in ascending order
624 Solvers
Flip the vector from right to left
2676 Solvers
724 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!