Get the number of elements in an element of a signal list
int gsl_numElements(SimStruct *S,SL_SigList *slist, int idx)
S
SimStruct representing an S-Function block.
slist
Signal list generated using
ssCallSigListCreateFcn
.
Index for an element within the signal list.
An int
representing the number of elements in the element at
the given index in the signal list.
Returns the number of elements in the element at the given index in the signal list.
C, C++
See the S-function barplot.c
.