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 comments
Loading...
Problem Recent Solvers15
Suggested Problems
-
Sort a list of complex numbers based on far they are from the origin.
5815 Solvers
-
How to find the position of an element in a vector without using the find function
2821 Solvers
-
252 Solvers
-
Magic is simple (for beginners)
11661 Solvers
-
Determine the number of odd integers in a vector
851 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!