Robust Control Toolbox™ Previous page   Next Page 
randatom
 Provide feedback about this page

Generate random uncertain atom objects

Syntax

Description

A = randatom(Type) generates a 1-by-1 type uncertain object. Valid values for Type include 'ureal', 'ultidyn', 'ucomplex', and 'ucomplexm'.

A = randatom(Type,sz) generates an sz(1)-by-sz(2) uncertain object. Valid values for Type include 'ultidyn' or 'ucomplexm'. If Type is set to 'ureal' or 'ucomplex', the size variable is ignored and A is a 1-by-1 uncertain object.

A = randatom, where randatom has no input arguments, results in a 1-by-1 uncertain object. The class is of this object is randomly selected between 'ureal','ultidyn' and 'ucomplex'.

In general, both rand and randn are used internally. You can control the result of randatom by setting seeds for both random number generators before calling the function.

Example

The following statement creates the ureal uncertain object xr. Note that your display can differ because a random seed is used.

The following statement creates the variable ultidyn uncertain object xlti with three inputs and four outputs. You will get the results shown below if both the random variable seeds are set to 29.

See Also
rand        Generates uniformly distributed random numbers

randn       Generates normally distributed random numbers

randumat    Creates a random uncertain matrix

randuss     Creates a random uncertain system

ucomplex    Creates an uncertain complex parameter

ucomplexm   Creates an uncertain complex matrix

ultidyn     Creates an uncertain linear time-invariant object


 Provide feedback about this page 

Previous page quadstab randumat Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS