Main Content

ssPruneNDMatrixSingletonDims

Prune trailing singleton dimensions

Syntax

void ssPruneNDMatrixSingletonDims(SimStruct *S, DimsInfo_T *dimsInfo)

Arguments

S

SimStruct that represents an S-Function block.

dimsInfo

Structure of type DimsInfo_T that specifies the dimensionality of the signals accepted by port.

See ssSetInputPortDimensionInfo for a description of this structure.

Description

Removes all trailing singleton dimensions in the dimsInfo structure. This function modifies the number of dimensions in the dimsInfo structure, but it does not change the dimension size array in dimsInfo.

Languages

C, C++

Version History

Introduced in R2007b