mdl = 'scdtmpSetpoints';
mdlpath = fullfile(matlabroot,'examples','slcontrol',mdl);
open_system(mdlpath)
Create an operating point specification object for the model.
opspec = operspec(mdl);
opspec contains specifications for the root-level input ports of the model.
Obtain the index of the element that corresponds to the second signal in the Setpoints
input vector.
index1 = getInputIndex(opspec,'scdtmpSetpoints/Setpoints',2)
index1 =
15 Alphabetical List