It's "their starting position" not "there starting position"...
Great!
Great!
no fancy function, no eccentric useage, and problem was swiftly solved. Excellent code!
GREAT!!! :-)
Would of never guessed it!
This actually has a minor bug -- it may fail on inputs containing negative numbers, e.g. x=[1 -1], however this is simply fixable by taking abs(x).
wonderful solution
it never gets tired to watch this kinda code.
516 Solvers
middleAsColumn: Return all but first and last element as a column vector
388 Solvers
390 Solvers
367 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
227 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!