Main Content

gsr_M

Determine number of rows in matrix signal

Syntax

int gsr_DataTypeSize(SL_SigRegion *reg)

Arguments

reg

Signal region.

Returns

An int that represents the number of rows if the data in the signal region is a matrix. -1 if the data in the signal region is not a matrix.

Description

Returns the number of rows if the data in the signal region corresponds to a matrix signal. Returns -1 if the signal region does not correspond to a matrix signal.

Languages

C, C++

Examples

See the S-function barplot.c.

Version History

Introduced in R2019a