Nice!
It's a shock that I didn't know such a function existed
Better than all previous non-cheat solutions :-)
You might wanna check it again ;)
The function 'unique' should probably also be prohibited.
Strictly following the problem statement, this should pass?
This also does the trick :)
How to find the position of an element in a vector without using the find function
2477 Solvers
07 - Common functions and indexing 4
319 Solvers
2340 Solvers
327 Solvers
Replace every 3rd element in a vector with 4
170 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!