How do I concatenate multiple vectors at random order?
Show older comments
Hi All!
I'm generating trajectories for participants to follow in a study. They consist of different segments, that i have in vectors - 20-30 different ones, of different lengths.
Now I'd like to concatenate these vectors at a random order in order to generate different trajectories for each participant.
So if I've got
a=1:10;
b=2:12;
c=3:13;
I'd like to get a vecor [a, b, c] whereby the order of a, b and c are randomly chosen (so b, c, a; c, a, b; and so on)
Is there an easy solution for this?
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices 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!