rand edit page

random directions or axes

Syntax

v = rand              % a random unit vector
v = rand('antipodal') % a random axis
v = rand(m,n)         % a m x n matric of random unit vectors
cs = crystlSymmetry('432');
sR = cs.fundamentalSector;
v = rand(v,sR) % a random unit vector inside a spherical region

Input

m,n double
sR sphericalRegion

Output

v vector3d

See also

rand