Pity that eval is forbidden - I had quite an elegant solution using it.
135 Solvers
91 Solvers
151 Solvers
Construct an index vector from two input vectors in vectorized fashion
178 Solvers
Create a vector whose elements depend on the previous element
397 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!