Main Content

ssSetSimulinkFunctionArgDimensions

Declare dimension of Simulink Function argument.

Syntax

void ssSetSimulinkFunctionArgDimensions(SimStruct *S, char *scopedFcnName, char *argName, int_T numDims, size_T val)

Arguments

S

SimStruct that represents an S-Function block.

scopedFcnName

Name of a Simulink Function with its Visibility parameter set to scoped.

argName

Name of Simulink Function argument.

numDims

Dimension of Simulink Function argument.

val

Array of type size_T.

Returns

No return value.

Description

size_t dims[1] = {1};
ssSetSimulinkFunctionArgDimensions(S, "timestwo", "u", 1, dims);

Languages

C, C++

Examples

The model sfcndemo_simulinkfunction_getset is an S-function example that models an object with get and set methods using two scoped Simulink Functions.

Version History

Introduced in R2018a