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 matrix of random unit vectorscs = crystalSymmetry('432');
sR = cs.fundamentalSector;
v = rand(v,sR) % a random unit vector inside a spherical regionInput
| m,n | double |
| sR | sphericalRegion |
Output
| v | vector3d |