私は行ベクトルの内側にある2行ベクトルを交換しようとしています。例えば行ベクトルの中で2つの行ベクトルを入れ替える方法は?
:私はランダムなスワップは、A、B、Cの2ことをやりたい
a=[1 2 3];
b=[5 3];
c=[9 3 7 6];
d=[7 5];
X1= [ a, b , d, c ];
、DはX1の同じ位置のままであり、それらの残りの二つは、X1にシャッフルします。例えば、可能なランダムスワップの一部は以下のとおりです。あなたがしようとしているものに [b,a,d,c] % a and b swap with each other whereas d and c remain at the same place
[d,b,a,c] % a and d swap with each other whereas b and c remain at the same place
[c,b,d,a] % a and c swap with each other whereas b and d remain at the same place
..... .....
この[URL](http://stackoverflow.com/help)を確認してください –
まで、あなたのコンテンツの品質を持ち上げるために有用であろう、私はあなたが求めているもの見当がつかない – excaza