It's "their starting position" not "there starting position"...
no fancy function, no eccentric useage, and problem was swiftly solved. Excellent code!
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).
it never gets tired to watch this kinda code.
Given a window, how many subsets of a vector sum positive
Are all the three given point in the same line?
Find the sides of an isosceles triangle when given its area and height from its base to apex
Converting binary to decimals
Solve a System of Linear Equations
Find same numbers touching each other...
Backslang, odds are you used it at some point in time...
NO _________ ALLOWED....
Ripping numbers apart!
Can you beat the lottery?
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office