ssSetSimulinkFunctionArgDimensions
Declare dimension of Simulink Function argument.
Syntax
void ssSetSimulinkFunctionArgDimensions(SimStruct *S, char *scopedFcnName, char *argName, int_T numDims, size_T val)
Arguments
SSimStruct that represents an S-Function block.
scopedFcnNameName of a Simulink Function with its Visibility parameter set to
scoped.argNameName of Simulink Function argument.
numDimsDimension of Simulink Function argument.
valArray 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.
See Also
ssCallSimulinkFunction, ssDeclareFunctionCaller, ssDeclareSimulinkFunction, ssGetSimulinkFunctionInput, ssGetSimulinkFunctionOutput, ssQuerySimulinkFunction, ssSetSimulinkFunctionArgComplexity, ssSetSimulinkFunctionArgDataType
Version History
Introduced in R2018a