age matching between two groups
Show older comments
Hi,
I have two vectors containing the age (integers) of subjects. At the beginning, there is a big difference between the average of two groups. My goal is to swap the elements of two vectors in a way that makes the two averages as close as possible together. Any idea how I can do this?
Thank you!
Accepted Answer
More Answers (0)
Categories
Find more on Numeric Types 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!