How to divide a vector into small groups
2 views (last 30 days)
Show older comments
I have a vector X of size 30 by 1 and I need to divide/group the elements (say the first two forms the first group third and fourth the second group and so on). Now I need to specifically check to which group a particular number (which is an element of X) belongs to and would like to get the index of that number (index when the number belongs to X, say for eg, it was the 15th number in X). Could anyone please help me sort this out.
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!