How to generate a vector of two separate intervals without overlapping?
2 ビュー (過去 30 日間)
古いコメントを表示
Assume that we have two vectors:
a = 1 2 3 4 5
b= 6 7 8 9 10
how can I generate a vector of random permutation of combining a and b so I can always get random permutation of a at first and then random permutation of b in vector c as below:
c = 1 2 3 4 5 6 7 8 9 10
or
c = 5 1 3 4 2 9 7 6 10 8
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!