Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Introduced before R2006a

Was this topic helpful?