Documentation Center

  • Trial Software
  • Product Updates

Contents

Signal Dimensions

Configure signal dimensions for input and output ports

S-Function Callback Methods

mdlInitializeSizes Specify the number of inputs, outputs, states, parameters, and other characteristics of the C MEX S-function
mdlSetDefaultPortDimensionInfo Set the default dimensions of the signals accepted or emitted by a C MEX S-function's ports
mdlSetWorkWidths Specify the sizes of the work vectors and create the run-time parameters required by this C MEX S-function
mdlSetInputPortDimensionInfo Set the dimensions of the signals accepted by an input port
mdlSetInputPortDimensionsModeFcn Propagate the dimensions mode
mdlSetInputPortWidth Set the width of an input port that accepts 1-D (vector) signals
mdlSetOutputPortDimensionInfo Set the dimensions of the signals accepted by an output port
mdlSetOutputPortWidth Set the width of an output port that outputs 1-D (vector) signals

SimStruct Functions

ssSetInputPortDimensionInfo Specify information about the dimensionality of an input port
ssSetInputPortDimensionsMode Sets the dimensions mode of the input port indexed by pIdx
ssSetInputPortDimsSameAsOutputPortDims Set the dimensions of output port outIdx to be equal to the dimensions of input port inpIdx. This method is called from mdlSetWorkWidths.
ssSetInputPortMatrixDimensions Specify dimension information for an input port that accepts matrix signals
ssSetInputPortVectorDimension Specify dimension information for an input port that accepts vector signals
ssSetInputPortWidth Specify the width of an input port
ssPruneNDMatrixSingletonDims Prune trailing singleton dimensions
ssSetCurrentOutputPortDimensions Sets the current size corresponding to dimension dIdx of the output signal at port pIdx.
ssSetOutputPortDimensionInfo Specify information about the dimensionality of an output port
ssSetOutputPortDimensionsMode Sets the dimensions mode of the output port indexed by pIdx
ssSetOutputPortMatrixDimensions Specify dimension information for an output port that emits matrix signals
ssSetOutputPortVectorDimension Specify dimension information for an output port that emits vector signals
ssSetOutputPortWidth Specify the width of an output port
ssSetOutputPortMatrixDimensions Specify dimension information for an output port that emits matrix signals
ssAddOutputDimsDependencyRule Register a method to handle current dimensions update.
ssAddVariableSizeSignalsRuntimeChecker Register a method to check the current input dimensions
ssAllowSignalsWithMoreThan2D Enable S-function to work with multidimensional signals
ssRegMdlSetInputPortDimensionsModeFcn Register the method to handle dimensions mode propagation for each input port.
ssSetDWorkRequireResetForSignalSize Set the block flag for resetting the dIndex Dwork size upon subsystem reset.
ssSetSignalSizesComputeType Set the type of output dependency on the input signal.
ssSetVectorMode Specify the vector mode that an S-function supports
ssGetCurrentInputPortDimensions Gets the current size of dimension dIdx of input port pIdx
ssGetCurrentInputPortWidth Gets the total width (total number of elements) of the signal at input port pIdx
ssGetInputPortDimensions Get the dimensions of the signal accepted by an input port
ssGetInputPortDimensionSize Get the size of one dimension of the signal entering an input port
ssGetInputPortDimensionsMode Gets the dimensions mode of the input port indexed by pIdx
ssGetInputPortNumDimensions Get the dimensionality of the signals accepted by an input port
ssGetInputPortWidth Get the width of an input port
ssGetCurrentOutputPortDimensions Gets the current size of dimension dIdx of the signal at output port pIdx.
ssGetCurrentOutputPortWidth Gets the total width (total number of elements) of the signal at output port pIdx.
ssGetOutputPortDimensions Get the dimensions of the signal leaving an output port
ssGetOutputPortDimensionSize Get the size of one dimension of the signal leaving an output port
ssGetOutputPortDimensionsMode Gets the dimensions mode of the output port indexed by pIdx
ssGetOutputPortNumDimensions Get the number of dimensions of an output port
ssGetOutputPortWidth Get the width of an output port
Was this topic helpful?