The online help documentation for the C S-function API method: mdlSetDefaultPortDimensionInfo conflicts with the example listed:
matlabroot/simulink/src/sfun_matadd.c
The documentation defines the usage syntax, to be:
mdlSetDefaultPortDimensionInfo(SimStruct *S, int_T port)
However when you look at the standard C S-function template document:
matlabroot/simulink/src/sfuntmpl_doc.c
and the example file mentioned, It only uses 1 input argument:
static void mdlSetDefaultPortDimensionInfo(SimStruct *S).
What is the correct usage syntax?
Best Answer