help I have 40 iteration , 10 iteration of 40 at random to do something and the other 30 iteration for do another thing??
Mostra commenti meno recenti
help I have 40 iteration , 10 iteration of 40 at random to do something and the other 30 iteration for do another thing?? for t=1:40 take 10 of 40 at random to do something and other 30 for do another thing
Risposta accettata
Più risposte (1)
Marcel
il 19 Gen 2015
Don't quite understand the question. Can't you just create 2 loops?
For i=1:30
<stuff happens>
end
For i=31:40
<other stuff happens>
end
2 Commenti
maha ismail
il 19 Gen 2015
Stephen23
il 19 Gen 2015
@ Marcel: you should avoid using i or j as the loop variables, as these are the names of the inbuilt imaginary unit .
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!