randperm for multiple times
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bathrinath
am 3 Mai 2014
Kommentiert: Bathrinath
am 3 Mai 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 Kommentare
Akzeptierte Antwort
Image Analyst
am 3 Mai 2014
Change seq to a(i,:).
n=6;
a=zeros(100,n);
for i=1:100
a(i,:) = randperm(n)
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!