Main Content
ssSetOutputPortSymbolicDimsId
Set precompiled SymbDimsId
of an output
port.
Languages
C, C++
Syntax
void ssSetOutputPortSymbolicDimsId(SimStruct *S, const int_T aPortIdx, const SymbDimsId aSymbDimsId)
Arguments
S
SimStruct representing an S-Function block.
aPortIdx
Index of an input port.
aSymbDimsId
Unique integer value corresponding to a symbolic dimension specification.
Returns
This function does not return a value.
Example
You can call this function from inside the mdlInitializeSizes
function.
For an output port with an index of 0
, this example
shows how to set the precompiled SymbDimsId
equal
to outputDimsId
.
const SymbDimsId outputDimsId = ssRegisterSymbolicDimsExpr(S, "[ F / C , D * (B-3)]"); ssSetOutputPortSymbolicDimsId(S, 0, outputDimsId);
Version History
Introduced in R2016a