www.gusucode.com > robust 案例源码程序 matlab代码 > robust/EvaluateUncertainMatrixforMultipleValuesofUncertainParamExample.m
%% Evaluate Uncertain Matrix for Multiple Values of Uncertain Parameters % Evaluate an uncertain matrix at several different values of the uncertain % parameters of the matrix. % Copyright 2015 The MathWorks, Inc. %% % Create an uncertain matrix with two uncertain parameters. a = ureal('a',5); b = ureal('b',-3); M = [a b]; %% % Evaluate the matrix at four different combinations of values for the uncertain % parameters |a| and |b|. B = usubs(M,'a',[1;2;3;4],'b',[10;11;12;13]); %% % This command evaluates |M| for the four different (|a|, |b|) combinations % (1,10), (2,11), and so on. Therefore, |B| is a 1-by-2-by-4 array of numeric % values containing the four evaluated values of |M|.