Writing S-Functions | ![]() ![]() |
Write a matrix parameter in MATLAB format to the model.rtw
file.
Syntax
int_T ssWriteRTWMx2dMatParam(SimStruct *S, const char_T *name, const void *rValue, const void *iValue, int_T dataType, int_T nRows, int_T nCols)
Arguments
S
SimStruct representing an S-Function block.
rValue
Real elements of the parameter array.
iValue
Imaginary elements of the parameter array.
dataType
Data type of the parameter elements (see Specifying Data Type Info).
nRows
Number of rows in the matrix.
nColumns
Number of columns in the matrix.
Description
Use this function in mdlRTW
to write a matrix parameter in MATLAB format to this S-function's model.rtw
file. This function returns true if successful.
Languages
See Also
mdlRTW, ssWriteRTW2dMatParam
![]() | ssWriteRTW2dMatParam | ssWriteRTWMxVectParam | ![]() |