Simulink Control Design™ - MathWorks

(Tuis.) #1

Specify parameter values. The parameter grids are 5-by-4 arrays.


[A_grid,b_grid] = ndgrid(linspace(0.9A,1.1A,5),...
linspace(0.9b,1.1b,4));
params(1).Name = 'A';
params(1).Value = A_grid;
params(2).Name = 'b';
params(2).Value = b_grid;


Simulate the model and extract operating points at 0 , 5 , and 10 time units.


op = findop(mdl,[0 5 10],params);


findop simulates the model for each parameter value combination, and extracts
operating points at the specified simulation times.


op is a 3-by-5-by-4 array of operating point objects.


size(op)


ans =


findop
Free download pdf