Main Content

ssSetSimulinkFunctionArgComplexity

Declare complexity of a Simulink Function argument.

Syntax

void ssSetSimulinkFunctionArgComplexity(SimStruct *S, char *scopedFcnName, char *argName, int_T val)

Arguments

S

SimStruct representing an S-Function block.

scopedFcnName

Name of a Simulink Function.

argName

Name of a Simulink Function input or output argument.

val

Either an int_T (1 or 0) or boolean_T (true or false) value.

Returns

No return value.

Description

ssSetSimulinkFunctionArgComplexity(S, "timestwo", "u", false);

Languages

C, C++

Example

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

Introduced in R2018a