Documentation

gsl_NumElements

Get the number of elements in an element of a signal list

Syntax

int gsl_numElements(SimStruct *S,SL_SigList *slist, int idx)

Arguments

S

SimStruct representing an S-Function block.

slist

Signal list generated usingssCallSigListCreateFcn.

idx

Index for an element within the signal list.

Returns

Anintrepresenting the number of elements in the element at the given index in the signal list.

Description

Returns the number of elements in the element at the given index in the signal list.

语言

C, C++

Example

See the S-functionbarplot.c.

Introduced in R2019a