MS_rotRandom

MS_ROTRANDOM - Randomly rotate an elasticity matrix.
Generate one or more randomly oriented elasticity matrices given a single
input matrix.
Usage:
[ CC, ... ] = MS_rotRandom( C, ... )
Rotate the elasticity matrix C to a random new orientation. CC is a
6x6 matrix
[ CC, ... ] = MS_rotRandom( C, 'number', n )
CC is a 6x6xn matrix where each orientation is drawn from a uniform
random distribution of orientations such that, for large n, the
avarage of the matricies in CC is isotropic.
[ CC, ... ] = MS_rotRandom( C, 'stream', PRNgenerator )
As above, but allow the user to specify the random number generator
to be used.
[ CC, eulers ] = MS_rotRandom( C, ... )
As above, but also output a 3xn array of Euler angles (Bunge notation
and in degrees) used to generate the rotated elasticity matrices.
See also: MS_ROT3 MS_ROTR MS_ROTEULER