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

Substitute given values for uncertain elements of uncertain objects

Syntax

Description

usubs is used to substitute a specific value for an uncertain element of an uncertain object. The value can itself be uncertain. It needs to be the correct size, but otherwise can be of any class, and can be an array. Hence, the result can be of any class. In this manner, uncertain elements act as symbolic placeholders, for which specific values (which can also contain other placeholders too) can be substituted.

B = usubs(M,atomname1,value1,atomname2,value2,...) sets the atoms in M, identified by atomname1, atomname2, etc., to the values in value1, value2, etc., respectively.

B = usubs(M,ElementName1,value1,ElementName2,value2,...) sets the elements in M, identified by ElementName1, ElementName2, etc., to the values in value1, value2, etc. respectively.

The names and values can also be grouped in cell arrays, as

In this case, if the value cell is 1-by-1, then that value is substituted for all the listed atoms. For this situation, it is not required that the value be in a cell array.

value can also be the string 'NominalValue' or 'Random' (or only partially specified) in which case the nominal value, or a random instance of the atom is used.

Combinations of the above syntaxes are also allowed, so that

is allowed.

The names and values can also be grouped in a structure, with its field names constituting the Names, and the field values constituting the Values. In the following function call, StrucArray is a structure with field names and values.

Robustness analysis commands such as wcnorm, wcgain and robuststab return the offending uncertain element values in this manner. usample, which randomly samples uncertain objects, also returns the sample points in this manner.

Examples

Create an uncertain matrix and perform identical substitution in two different manners.

You can make an array-valued substitution using the structure-based syntax,

You can use usubs to substitute for individual uncertainties. Create three uncertain real parameters, and form a simple 2-by-2 uncertain matrix with the parameters

You can perform a single parameter substitution and check the results

You can replace one real parameter with a transfer function, and other parameters with doubles. You can do this using two different forms of the syntax and check that the results are identical.

In m, replace 'a' with 'b', obtaining 'b' directly from m :

See Also
gridureal   Grids uncertain real parameters over their range

usample     Generates random samples of an atom

simplify    Simplify representation of uncertain objects


 Provide feedback about this page 

Previous page uss wcgain Next page

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