Why is there a different syntax in the documentation for the S-function callback method mdlSetDefa​ultPortDim​ensionInfo in Simulink 6.0 (R14) and the example listed in the reference sfun_matadd.c?

1 view (last 30 days)
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?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This is an error within the documentation for Simulink within the S-function callback method mdlSetDefaultPortDimensionInfo. The documentation should read as follows:
Syntax
void mdlSetDefaultPortDimensionInfo(SimStruct *S)

More Answers (0)

Categories

Find more on Block and Blockset Authoring in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!