-
1 Comment
J-G van der Toorn
on 20 Feb 2014
Since Cody, I dislike for-loops, but your solution is way simpler than my own algorithm. Mission accomplished...
Nevertheless, I would hope for a non-looped piece of code. Let's see in phase 3.
Suggested Problems
-
Return the largest number that is adjacent to a zero
5410 Solvers
-
How to find the position of an element in a vector without using the find function
2749 Solvers
-
Create a vector whose elements depend on the previous element
713 Solvers
-
383 Solvers
-
148 Solvers
More from this Author31
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!