Simulink Control Design™ - MathWorks

(Tuis.) #1
parameters. Corresponding array entries for all the parameters, also referred to as a
parameter grid points, must map to a specified parameter combination. When the
software trims the model, it computes an operating point for each grid point.

Specify Full Grid

Suppose that your model has two parameters whose values you want to vary, a and b:

a= a1,a 2
b= b1,b 2

You want to trim the model for every combination of a and b, also referred to as a full
grid:

(a 1 ,b 1 ), (a 1 ,b 2 )
(a 2 ,b 1 ), (a 2 ,b 2 )

Create a rectangular parameter grid using ndgrid.

a1 = 1;
a2 = 2;
a = [a1 a2];

b1 = 3;
b2 = 4;
b = [b1 b2];

[A,B] = ndgrid(a,b)

>> A

A =

1 1
2 2

>> B

B =

3 4
3 4

Create the structure array, params, that specifies the parameter grid.

1 Steady-State Operating Points

Free download pdf