Problem 58992. A row vector, pick 1st number, skip 1,pick 3rd number, skip 2,pick,skip,etc then place all picked numbers in order in new vector
Having a row vector of number, pick the first number, place in new output vector as the first value,
then skip one number, pick the 3rd number, place as 2nd number in the output vector,
the skip 2, pick the 6th number, place as the 3rd number in the putput vector, etc.
Until you run out of numbers in the original vector.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers13
Suggested Problems
-
Determine whether a vector is monotonically increasing
22763 Solvers
-
Back to basics 8 - Matrix Diagonals
958 Solvers
-
Flip the main diagonal of a matrix
897 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
395 Solvers
-
96 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!