How can i randomly move the values of a vector
Mostra commenti meno recenti
Hi everyone.
Suppose i have a column vector X=[1;2;5;7;8].Now i want randomly arrangement of the values of this vector.For example X1=[2,7,8,1,5] is one of such random arrangement.My purpose is to randomly movement of this vector values and then add it to another vector say Y in one of my simulation experiment.
THANKS WITH BEST WISHES
Risposta accettata
Più risposte (1)
Thorsten
il 23 Lug 2015
X = X(randperm(numel(X));
Categorie
Scopri di più su Physics 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!