MATLAB: Generation of permuted matrix

permuted matrix

Hi!
I have a vector A=[2 3 6 5].
how could i generate a matrix from this arraĆ½ in this manner?
%
B=[A permuted(A) permuted(A).....]
Thank you
[edit]
May array has the length of 120! in matlab help i read that perms makes sense just for length less than 11. and am looking for B with size of (120*10).

Best Answer

A=1:120; %your data
for k=1:10
[idx,idx]=sort(rand(1,120))
out(k,:)=A(idx)
end