Simulink Control Design™ - MathWorks

(Tuis.) #1

Create an operating point specification for the model.


opspec = operspec(mdl);


The States property of the operating point specification object contains one state
specification for each Simscape state in the model.


To obtain the index of a specification that corresponds to a Simscape state, specify the
state name. For example, get the index of the pressure state of Tank3.


idx = getStateIndex(opspec,'scdTanks_simscape.Tank3.pressure')


idx =


21 1


getStateIndex
Free download pdf