Will not work for x = [1 3 5 7] or x = [0:5:30], for example.
2486 Solvers
142 Solvers
220 Solvers
Matrix indexing with two vectors of indices
485 Solvers
Getting the absolute index from a matrix
211 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!