| Robust Control Toolbox | |
| Provide feedback about this page |
Check whether argument is uncertain class type
Syntax
Description
Returns true if input argument is uncertain, false otherwise. Uncertain classes are umat, ufrd, uss, ureal, ultidyn, ucomplex, ucomplexm, and udyn.
Example
In this example, you verify the correct operation of isuncertain on double, ureal, ss, and uss objects.
isuncertain(rand(3,4)) ans = 0 isuncertain(ureal('p',4)) ans = 1 isuncertain(rss(4,3,2)) ans = 0 isuncertain(rss(4,3,2)*[ureal('p1',4) 6;0 1]) ans = 1
Limitations
isuncertain only checks the class of the input argument, and does not actually verify that the input argument is truly uncertain. Create a umat by lifting a constant (i.e., not-uncertain) matrix to the umat class.
Note that although A is in class umat, it is not actually uncertain. Nevertheless, based on class, the result of isuncertain(A) is true.
The result of simplify(A) is a double, and hence not uncertain.
| Provide feedback about this page |
![]() | ispsys | lftdata | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |