opspec(1,3).States(2).SteadyState = 1;
opspec(1,3).States(1).x = 2;
You can also create multidimensional arrays of operating point specification objects. For
example, create a 3-by-4-by-5 array.
opspec = operspec(sys,[3,4,5]);
Input Arguments
mdl — Simulink model
character vector | string
Simulink model name, specified as a character vector or string.
dim — Array dimensions
integer | row vector of integers
Array dimensions, specified as one of the following:
- Integer — Create a column vector of dim operating point specification objects.
- Row vector of integers — Create an array of operating point specification objects with
the dimensions specified by dim.
For example, to create a 4-by-5 array of operating point specification objects, use:
opspec = operspec(mdl,[4,5]);
To create a multidimensional array of operating point specification objects, specify
additional dimensions. For example, to create a 2-by-3-by-4 array, use:
opspec = operspec(mdl,[2,3,4]);
Output Arguments
opspec — Operating point specifications
operating point specification object | array of operating point specification objects
Operating point specifications, returned as an operating point specification object or an
array of such objects.
operspec