Generate code generation data for the MATLAB S-function
No
MATLAB
WriteRTW(s)
s
Instance of Simulink.MSFcnRunTimeBlock
class
representing the Level-2 MATLAB S-Function block.
This function is called when the Simulink®
Coder™ product
is generating the model
.rtw
file.
In Level-2 MATLAB S-functions, use the run-time object's WriteRTWParam
method
to write custom parameters to the model
.rtw
file.
See the S-function adapt_lms.m
in
the Simulink model sldemo_msfcn_lms
for
an example.