Unequal partitioning a vector
Show older comments
I want to partitioning a vector to a certain number of vectors, but these vectors should be unequal in length, for example, if I have x = ([1 0 2 1 4 8 7 5 3 1 0 2]); and I'd divide it into 3 parts (vectors). The solution will be ([1 0 2]), ([1 4 8 7]) and ([the remaining]).
Accepted Answer
More Answers (0)
Categories
Find more on Data Types in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!