randumat
Generate random uncertain umat objects
Syntax
um = randumat(ny,nu) um = randumat
Description
um = randumat(ny,nu) generates an uncertain matrix of size ny-by-nu. randumat randomly selects from uncertain atoms of type 'ureal', 'ultidyn', and 'ucomplex'.
um = randumat results in a 1-by-1 umat uncertain object, including up to four uncertain objects.
Examples
The following statement creates the umat uncertain object x1 of size 2-by-3. Note that your result can differ because a random seed is used.
x1 = randumat(2,3)
x1 =
Uncertain matrix with 2 rows and 3 columns.
The uncertainty consists of the following blocks:
AWYRT: Uncertain real, nominal = 7.09, variability = [-7.84,16.4]%, 2 occurrences
HRRED: Uncertain complex, nominal = 3.14+5.47i, radius = 1.92, 1 occurrences
VSIYA: Uncertain real, nominal = -4.05, variability = [-1.53,3.83], 3 occurrences
YZEZY: Uncertain complex, nominal = -6.54-2.17i, variability = 24%, 1 occurrences
Type "x1.NominalValue" to see the nominal value, "get(x1)" to see all properties, and
"x1.Uncertainty" to interact with the uncertain elements.
The following statement creates the umat uncertain object x2 of size 4-by-2 with the seed 91.
rng(91,'twister'); x2 = randumat(4,2)
x2 =
Uncertain matrix with 4 rows and 2 columns.
The uncertainty consists of the following blocks:
YQZBI: Uncertain complex, nominal = 3.61+1.88i, radius = 1.42, 1 occurrences
Type "x2.NominalValue" to see the nominal value, "get(x2)" to see all properties,
and "x2.Uncertainty" to interact with the uncertain elements.
Version History
Introduced before R2006a