Skip to Main Content Skip to Search
Product Documentation

ssGetInputPortDimensions - Get the dimensions of the signal accepted by an input port

Syntax

int_T *ssGetInputPortDimensions(SimStruct *S, int_T port)

Arguments

S

SimStruct representing an S-Function block.

port

Index of an input port.

Returns

A pointer (int_T *) to an array of integers. The array contains elements with the value DYNAMICALLY_SIZED (-1) when the size of a dimension is unknown.

Description

Use to obtain the dimensions of the signal accepted by the input port with index port, e.g., [4 2] for a 4-by-2 matrix array. The size of the dimensions array is equal to the number of signal dimensions accepted by the port, e.g., 1 for a vector signal or 2 for a matrix signal.

Languages

C, C++

Example

See the S-function sfun_frmdft.c used in sfcndemo_frame.mdl. Running this model requires a DSP System Toolbox license.

See Also

ssGetInputPortNumDimensions

  


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