the description of your problem is wrong, not the same as test suits. the either..or... should be both...and...
I updated the description to clarify the ambiguity mentioned by Gareth Lee on 1 May 2015.
With apologies for the 2 year delay, I've updated the description to be a little more explicit.
I hadn't seen this approach to masking the complexity of a solution before. Obvious in hindsight of course.
Make the vector [1 2 3 4 5 6 7 8 9 10]
36214 Solvers
715 Solvers
Create a vector whose elements depend on the previous element
397 Solvers
284 Solvers
1199 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!