Skip to Main Content Skip to Search
Product Documentation

ssGetInputPortNumDimensions - Get the dimensionality of the signals accepted by an input port

Syntax

int_T ssGetInputPortNumDimensions(SimStruct *S, int_T port)

Arguments

S

SimStruct representing an S-Function block.

port

Index of an input port.

Returns

A positive integer indicating the number of dimensions of the input port specified by the index port, or DYNAMICALLY_SIZED, if the number of dimensions is unknown.

Description

Use to obtain the number of dimensions of a particular input port.

Languages

C, C++

Example

See the S-function sdotproduct.c used in sfcndemo_sdotproduct.mdl.

See Also

ssGetInputPortDimensions

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS