Main Content
randrot
Description
returns a unit quaternion drawn
from a uniform distribution of random rotations.R
= randrot
returns an R
= randrot([m1,...,mN]
)m1
-by-...-by-mN
array of random unit
quaternions, where m1
,…, mN
indicate the size of
each dimension. For example, randrot([3,4])
returns a 3-by-4 matrix of
random unit quaternions.
Examples
Input Arguments
Output Arguments
References
[1] Shoemake, K. "Uniform Random Rotations." Graphics Gems III (K. David, ed.). New York: Academic Press, 1992.
Extended Capabilities
Version History
Introduced in R2020a