Simulink Control Design™ - MathWorks

(Tuis.) #1

  • Be at steady state.

  • Have a lower bound of 0.

  • Have an initial value of 2 for trimming.


opspec.States(1).SteadyState = 1;
opspec.States(1).x = 2;
opspec.States(1).Min = 0;

Create Array of Operating Point Specification Objects

Open Simulink model.

sys = 'watertank';
open_system(sys)

Create a 2-by-3 array of operating point specification objects. You can batch trim model at
multiple operating points using such arrays.

opspec = operspec(sys,[2,3]);

Each element of opspec contains a default operating point specification object for the
model.

Modify the operating point specification objects using dot notation. For example,
configure the second state of the specification object in row 1 , column 3.

15 Alphabetical List

Free download pdf