%% Complexified Uncertain Parameter
% To illustrate complexification, create a uncertain real parameter, cast it to an uncertain matrix, and apply a 10% complexification.

a = umat(ureal('a',2.25,'Range',[1.5 3])); 
b = complexify(a,.1); 
as = usample(a,200); 
bs = usample(b,4000);

%
% Make a scatter plot of the values that the complexified matrix (scalar) can take, as well as the values of the original uncertain real parameter.

plot(real(bs(:)),imag(bs(:)),'.',real(as(:)),imag(as(:)),'r.')
axis([1 3.5 -0.2 0.2])

% Copyright 2015 The MathWorks, Inc.