Unequal partitioning a vector
1 view (last 30 days)
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]).
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Logical 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!