Pascal Wenger, I recommend that you employ "assessFunctionAbsence" — see
https://au.mathworks.com/help/coursework/ug/assessfunctionabsence.html — in your Test Suite to more robustly deal with tricks to sidestep intended solution.
Nice trick to sidestep intended solution!
Select every other element of a vector
20864 Solvers
236 Solvers
110 Solvers
207 Solvers
Removing rows from a matrix is easy - but what about inserting rows?
127 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!