%% Generate Random Samples of Uncertain Variables
% Create a structure that contains uncertain variables a and b.

uvars = struct('a',ureal('a',5),'b',ultidyn('b',[2 3],'Bound',7))

% Generate a random sample of a and b.

samples = usample(uvars)

% samples is also a structure, where each field contains a randomly sampled instance of the uncertain variable type in uvars. You can use samples to simulate an uncertain Simulink model at these values as shown in the next example.
%
% Copyright 2019 The MathWorks, Inc.