Simulate Uncertainty Effects
How to Simulate Effects of Uncertainty
As described inSpecify Uncertainty Using Uncertain State Space Blocks, the uncertain state-space model you specify in theUncertain State Spaceblock depends on a set of uncertain variables (ureal
,umargin
, orultidyn
objects.) You can simulate the model using nominal value of these uncertain variables. Additionally, you can sample these uncertain variables and simulate the model for various values in the uncertainty range (Monte Carlo simulation.) For more information, seeHow to Vary Uncertainty Values. You can view and compare the simulation results for various sample values of uncertainty using theMultiPlot Graphblock.
How to Vary Uncertainty Values
There are two ways to control the uncertainty values using theUncertainty value (struct or[]to use nominal value)field of theUncertain State Spaceblock parameters dialog box:
For simple models with few uncertain variables or oneUncertain State Spaceblock, type the value in theUncertain State Spaceblock itself. For more information, seeSimulate Uncertain Model at Sampled Parameter Values.
For complex models with large number of uncertain variables orUncertain State Spaceblocks, use a single data structure for all uncertain variables referenced by the model. Using this approach, you can collectively control the values of all or a subset of uncertain variables and toggle between nominal and user-defined values from the MATLAB®prompt. For more information, seeVary Uncertain Values Across Multiple Uncertain Blocks.