RandDim
>Psychtoolbox>PsychProbability
mat = RandDim(in,dim)
randomizes dimension DIM of matrix IN
IN can have any number of dimensions
DN 2008 Wrote it
Path Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychProbability/RandDim.m