| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Robust Control Toolbox |
| Contents | Index |
Find uncertain variables in Simulink model
uvars = ufind ('mdl') finds Uncertain State Space blocks in the Simulink model mdl. It returns a structure uvars that contains all uncertain variables associated with the Uncertain State Space blocks. Each uncertain variable is a ureal or ultidyn object and is listed by name in uvars.
[uvars,pathinfo] = ufind('mdl') returns a cell array pathinfo that contains paths to the Uncertain State Space blocks and the corresponding uncertain variables in the block. The first column of pathinfo lists the block paths through the model hierarchy and the second column lists the uncertain variables associated with the block. Use pathinfo to verify that all Uncertain State Space blocks in the model mdl have been identified.
uvars = ufind(usys_1,usys_2,...) collects all uncertain variables referenced by the uncertain model usys_n. usys_n can be uss or ufrd models. Use this syntax as an alternative to querying the model itself, when you know the uncertain models that the Uncertain State Space blocks use.
ufind can find Uncertain State Space blocks inside Masked Subsystems, Library Links, and Model References but not inside Accelerated Model References. ufind errors out if the same uncertain variable name has different definitions in the model. For example, if your model contains two Uncertain State Space blocks where the uncertain system variables define the same uncertain variable "unc_par" as ultidyn('unc_par',[1 1]) and ureal('unc_par',5), such an error occurs.
Find all Uncertain State Space blocks and uncertain variables in a Simulink model:
usample, Uncertain State Space block
Varying Uncertainty Values Using Individual Uncertain State Space Blocks
Varying Uncertainty Values Across Multiple Uncertain State Space Blocks
Robustness Analysis in Simulink
Simulating Uncertainty Effects
| Provide feedback about this page |
![]() | udyn | ufrd | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |