spec: none
spec: none
spec: none
spec: none
Obtain the indices of all the elements of Out1.
index1 = getOutputIndex(opspec,'scdtmp/Out1')
index1 =
1 1
1 2
1 3
1 4
1 5
1 6
Each row of index1 contains the index for one element of the vector signal in Out1. The
first column is the index of the output specification object for the Out1 port in the
opsepc.Outputs. The second column is the element index within the output
specification.
You can also obtain the index for individual elements of an output specification, or a
subset of elements. Get the index of element number 4 of Out1.
index2 = getOutputIndex(opspec,'scdtmp/Out1',[],4)
index2 =
1 4
Get the indices of elements 2 and 3 of Out1.
index3 = getOutputIndex(opspec,'scdtmp/Out1',[],[2 3])
index3 =
1 2
15 Alphabetical List