Write a matrix parameter in MATLAB format to the
filemodel
.rtw
int_T ssWriteRTWMx2dMatParam(SimStruct *S, const char_T *name, const void *rValue, const void *cValue, int_T dataType, int_T nRows, int_T nCols)
S
SimStruct representing an S-Function block.
name
Parameter name.
rValue
Real elements of the parameter array.
cValue
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.
nCols
Number of columns in the matrix.
An int_T
(1
or 0
) or
boolean_T
(true
or
false
) indicating the success or failure of the
function.
Use this function in mdlRTW
to write a matrix parameter in
MATLAB® format to this S-function's
file.model
.rtw
C, C++