Docs @ Psychtoolbox Wiki : Shuffle

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Shuffle

PsychtoolboxPsychProbability

[Y,index] = Shuffle(X)

Randomly sorts X.
If X is a vector, sorts all of X, so Y = X(index).
If X is an m-by-n matrix, sorts each column of X, so
for j=1:n, Y(:,j)=X(index(:,j),j).

Also see SORT, Sample, Randi, and RandSample.




Path   Retrieve current version of Shuffle.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychProbability/Shuffle.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0222 seconds