randperm for multiple times
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Bathrinath
il 3 Mag 2014
Commentato: Bathrinath
il 3 Mag 2014
Hi, I need randperm has to be generated for 100 times which has to be saved in 'a'. Suggest some points.
n=6;
a=zeros(100,n);
for i=1:100
seq=randperm(n)
end
0 Commenti
Risposta accettata
Image Analyst
il 3 Mag 2014
Change seq to a(i,:).
n=6;
a=zeros(100,n);
for i=1:100
a(i,:) = randperm(n)
end
Più risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Report Generator in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!