code sequence repeat 1000 times
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Rasmus
am 16 Apr. 2014
Kommentiert: Rasmus
am 16 Apr. 2014
hello guys!
which way would be the easiest way to repeat a sequence 1000 times ?
this is my code
-------------------------------------------------------
x0=[zeros(1,276) ones(1,290)];
x=x0(randperm(566));
b=(0:566);
d=[x 0]-[0 x];
l=(b(d==(-1))-b(d==1))
L=max(l)
-------------------------------
i want 1000 results of L, i've tried searching for something that might work, but nothing that works.
any ideas?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Language Fundamentals 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!